Define M_PI (not part of C89)

This commit is contained in:
cgohlke
2014-03-10 20:57:33 -07:00
parent a3067c572a
commit 44f26ce9ee
+4
View File
@@ -21,6 +21,10 @@
#include <string.h>
#include <math.h>
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
#define PI M_PI
#define TWOPI (2 * M_PI)