From: havoc Date: Sun, 1 Dec 2002 20:08:22 +0000 (+0000) Subject: fix compiling problems in MSVC (thanks Tomaz) X-Git-Tag: RELEASE_0_2_0_RC1~44 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4b0bd73b54076a156246a3b12d38f1da7f7ed4b;p=xonotic%2Fdarkplaces.git fix compiling problems in MSVC (thanks Tomaz) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2662 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/darkplaces.dsp b/darkplaces.dsp index 5a08d7e0..8c871dd2 100644 --- a/darkplaces.dsp +++ b/darkplaces.dsp @@ -396,10 +396,6 @@ SOURCE=.\sys_win.c # End Source File # Begin Source File -SOURCE=.\transform.c -# End Source File -# Begin Source File - SOURCE=.\ui.c # End Source File # Begin Source File @@ -684,10 +680,6 @@ SOURCE=.\sys.h # End Source File # Begin Source File -SOURCE=.\transform.h -# End Source File -# Begin Source File - SOURCE=.\ui.h # End Source File # Begin Source File diff --git a/matrixlib.h b/matrixlib.h index 23150179..c5476443 100644 --- a/matrixlib.h +++ b/matrixlib.h @@ -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];