Skip to content

Commit

Permalink
add M_PI definition back
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 28, 2018
1 parent db8b323 commit 777cb96
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/common/tpt-compat.h
Expand Up @@ -21,6 +21,10 @@
#define strcasecmp stricmp
#endif

#ifndef M_PI
#define M_PI 3.14159265f
#endif

typedef unsigned short Uint16;

#ifndef NULL
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/Renderer.cpp
Expand Up @@ -7,8 +7,9 @@
#include "Misc.h"
#include "Renderer.h"
#include "Graphics.h"
#include "common/tpt-rand.h"
#include "common/tpt-compat.h"
#include "common/tpt-minmax.h"
#include "common/tpt-rand.h"
#include "gui/game/RenderPreset.h"
#include "simulation/Elements.h"
#include "simulation/ElementGraphics.h"
Expand Down
2 changes: 2 additions & 0 deletions src/simulation/Element.h
Expand Up @@ -7,6 +7,8 @@
#include "Gravity.h"
#include "Misc.h"
#include "Simulation.h"
#include "common/tpt-compat.h"
#include "common/tpt-rand.h"
#include "graphics/Renderer.h"

#define IPL -257.0f
Expand Down
1 change: 0 additions & 1 deletion src/simulation/Elements.h
Expand Up @@ -70,7 +70,6 @@
struct playerst;

#include "ElementClasses.h"
#include "common/tpt-rand.h"


#endif /* ELEMENTS_H_ */

0 comments on commit 777cb96

Please sign in to comment.