Remove ad-hoc M_PIs and enable VC++ macro

Fixes #564.
This commit is contained in:
Camilla Berglund
2015-07-27 16:04:21 +02:00
parent 3d62ff0e07
commit d2113dc9f5
6 changed files with 29 additions and 22 deletions

View File

@@ -24,6 +24,11 @@
//
//========================================================================
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -43,11 +48,6 @@
#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA
#endif // GL_EXT_separate_specular_color
// Some <math.h>'s do not define M_PI
#ifndef M_PI
#define M_PI 3.141592654
#endif
//========================================================================
// Type definitions