summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-02-10 12:25:50 -0800
committerIan Romanick <ian.d.romanick@intel.com>2010-02-10 12:51:44 -0800
commitb48f267bf109ab7bd995d12b355f4dedaa10766f (patch)
tree944bd77fcfeddc732c13955cbdc16b7e8dbeb228
parentd5a4b3c3b497ec15e8851ee5f087468f558d27de (diff)
Word around missing M_PI on some platforms.
-rw-r--r--src/matrix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/matrix.c b/src/matrix.c
index 0c97ee9..0951ffd 100644
--- a/src/matrix.c
+++ b/src/matrix.c
@@ -21,9 +21,17 @@
* DEALINGS IN THE SOFTWARE.
*/
+#ifdef _MSC_VER
+#define _USE_MATH_DEFINES
+#endif
+
#include <string.h>
#include "glu3.h"
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
#define DEG2RAD(d) ((d) * M_PI / 180.0)
const GLUmat4 gluIdentityMatrix = {