]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix compiling problems in MSVC (thanks Tomaz)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Dec 2002 20:08:22 +0000 (20:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Dec 2002 20:08:22 +0000 (20:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2662 d7cf8633-e32d-0410-b094-e92efae38249

darkplaces.dsp
matrixlib.h

index 5a08d7e0e069b160ab25f48622ae5df03f946528..8c871dd24d35b0e37144fcfbd1d5b523a80806e2 100644 (file)
@@ -396,10 +396,6 @@ SOURCE=.\sys_win.c
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\transform.c\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=.\ui.c\r
 # End Source File\r
 # Begin Source File\r
@@ -684,10 +680,6 @@ SOURCE=.\sys.h
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=.\transform.h\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=.\ui.h\r
 # End Source File\r
 # Begin Source File\r
index 2315017980359d5aed3286ca50cf421a6d27323c..c54764435a3d73f5b0b60540f091b2efa07912e3 100644 (file)
@@ -2,6 +2,10 @@
 #ifndef MATRIXLIB_H
 #define MATRIXLIB_H
 
+#ifndef M_PI
+#define M_PI           3.14159265358979323846  // matches value in gcc v2 math.h
+#endif
+
 typedef struct matrix4x4_s
 {
        float m[4][4];