From c4b0bd73b54076a156246a3b12d38f1da7f7ed4b Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 1 Dec 2002 20:08:22 +0000 Subject: [PATCH] fix compiling problems in MSVC (thanks Tomaz) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2662 d7cf8633-e32d-0410-b094-e92efae38249 --- darkplaces.dsp | 8 -------- matrixlib.h | 4 ++++ 2 files changed, 4 insertions(+), 8 deletions(-) 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]; -- 2.39.2