add M_PI definition back

This commit is contained in:
jacob1 2018-04-28 00:26:43 -04:00
parent db8b32363e
commit 777cb967a5
4 changed files with 8 additions and 2 deletions

View File

@ -21,6 +21,10 @@
#define strcasecmp stricmp #define strcasecmp stricmp
#endif #endif
#ifndef M_PI
#define M_PI 3.14159265f
#endif
typedef unsigned short Uint16; typedef unsigned short Uint16;
#ifndef NULL #ifndef NULL

View File

@ -7,8 +7,9 @@
#include "Misc.h" #include "Misc.h"
#include "Renderer.h" #include "Renderer.h"
#include "Graphics.h" #include "Graphics.h"
#include "common/tpt-rand.h" #include "common/tpt-compat.h"
#include "common/tpt-minmax.h" #include "common/tpt-minmax.h"
#include "common/tpt-rand.h"
#include "gui/game/RenderPreset.h" #include "gui/game/RenderPreset.h"
#include "simulation/Elements.h" #include "simulation/Elements.h"
#include "simulation/ElementGraphics.h" #include "simulation/ElementGraphics.h"

View File

@ -7,6 +7,8 @@
#include "Gravity.h" #include "Gravity.h"
#include "Misc.h" #include "Misc.h"
#include "Simulation.h" #include "Simulation.h"
#include "common/tpt-compat.h"
#include "common/tpt-rand.h"
#include "graphics/Renderer.h" #include "graphics/Renderer.h"
#define IPL -257.0f #define IPL -257.0f

View File

@ -70,7 +70,6 @@
struct playerst; struct playerst;
#include "ElementClasses.h" #include "ElementClasses.h"
#include "common/tpt-rand.h"
#endif /* ELEMENTS_H_ */ #endif /* ELEMENTS_H_ */