From 75a8ea9a5470105222e159b218b19a43e9abb910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Mon, 30 Oct 2017 13:35:04 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@309 a8b55f48-bf90-11e4-a774-851b48703e85 --- qglview/gltypes.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/qglview/gltypes.h b/qglview/gltypes.h index 220a75e..e090da0 100644 --- a/qglview/gltypes.h +++ b/qglview/gltypes.h @@ -110,11 +110,15 @@ typedef QGLShaderProgram __GLShaderProgram__; # define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE #endif -#ifdef CC_VC +#ifndef M_PI # define M_PI 3.14159265358979323846 #endif -#define M_2PI 6.28318530717958647692 -#define M_PI_3 1.04719755119659774615 +#ifndef M_2PI +# define M_2PI 6.28318530717958647692 +#endif +#ifndef M_PI_3 +# define M_PI_3 1.04719755119659774615 +#endif #ifndef GL_RGBA16F # define GL_RGBA16F GL_RGBA16F_ARB