Fix the Linux build.

This commit is contained in:
jean.chalard
2011-12-18 09:40:35 +00:00
parent 7264d6f0e2
commit d93fdb2d4a
3 changed files with 8 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ LIBDIR = ../../JGE/lib/psp
CFLAGS = -O2 -G0 -DPSPFW3XX -DDEVHOOK -DUSE_PRECOMPILED_HEADERS=1 -DPSP
else
OBJS += objs/TestSuiteAI.o
INCDIR = -I../../JGE/include -I../../JGE/src -I/usr/X11/include -I../../projects/mtg/include -I../../Boost
INCDIR = -I../../JGE/include -I../../JGE/src -I/usr/X11/include -I../../projects/mtg/include -I../../Boost -I../../JGE/src/zipFS
LIBDIR = -L../../JGE/lib/linux -L../../JGE -L/usr/X11/lib -L../../Boost/lib
LIBS = -ljge -lfreetype -ljpeg -lgif -lpng -lz -lm -lstdc++ -lhgetools -lGL -lGLU -lX11 -lboost_thread $(FMOD)
CFLAGS = $(INCDIR) -DLINUX -DUSE_PRECOMPILED_HEADERS=1

View File

@@ -12,6 +12,13 @@ using std::vector;
class PlayGuiObject;
class DuelLayers;
// The X lib annoyingly defines True to be 1, leading to
// hard to understand syntax errors. Not using it, so it's
// safe to undefine it.
#ifdef True
#undef True
#endif
template<typename T>
struct LimitorFunctor
{

View File

@@ -7,15 +7,6 @@
#include "Closest.cpp"
#include "GameObserver.h"
//using std::cout;
// The X lib annoyingly defines True to be 1, leading to
// hard to understand syntax errors. Not using it, so it's
// safe to undefine it.
#ifdef True
#undef True
#endif
struct Left: public Exp
{
static inline bool test(CardSelector::Target* ref, CardSelector::Target* test)