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

@@ -14,14 +14,15 @@
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
//========================================================================
// Global variables