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
+5 -5
View File
@@ -27,6 +27,11 @@
* a hidden computer or VCR.
*****************************************************************************/
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@@ -102,11 +107,6 @@ double dt;
#define RAND_MAX 4095
#endif
/* PI */
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
/*****************************************************************************
* Truncate a degree.