Browse Source

build: fix GCC build; it doesn't like to have a local file called debug/debug.h.

legacy
Sam Hocevar sam 12 years ago
parent
commit
4e4d5a8e06
4 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/Makefile.am
  2. +1
    -1
      src/core.h
  3. +2
    -2
      src/lol/debug.h
  4. +1
    -1
      win32/lolcore.vcxproj

+ 2
- 2
src/Makefile.am View File

@@ -2,7 +2,7 @@
noinst_LIBRARIES = liblol.a noinst_LIBRARIES = liblol.a


liblol_a_SOURCES = \ liblol_a_SOURCES = \
core.h tiler.cpp tiler.h dict.cpp dict.h debug/debug.h \
core.h tiler.cpp tiler.h dict.cpp dict.h \
audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \ audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \
map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \ map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \
tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h log.cpp log.h \ tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h log.cpp log.h \
@@ -12,7 +12,7 @@ liblol_a_SOURCES = \
worldentity.cpp worldentity.h gradient.cpp gradient.h \ worldentity.cpp worldentity.h gradient.cpp gradient.h \
platform.cpp platform.h sprite.cpp sprite.h \ platform.cpp platform.h sprite.cpp sprite.h \
\ \
lol/unit.h \
lol/unit.h lol/debug.h \
lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \ lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \
\ \
application/application.cpp application/application.h \ application/application.cpp application/application.h \


+ 1
- 1
src/core.h View File

@@ -62,6 +62,7 @@ static inline int isnan(float f)
#endif #endif


// Base types // Base types
#include "lol/debug.h"
#include "math/trig.h" #include "math/trig.h"
#include "lol/math/half.h" #include "lol/math/half.h"
#include "lol/math/real.h" #include "lol/math/real.h"
@@ -71,7 +72,6 @@ static inline int isnan(float f)
#include "thread/thread.h" #include "thread/thread.h"


// Static classes // Static classes
#include "debug/debug.h"
#include "log.h" #include "log.h"
#include "platform.h" #include "platform.h"
#include "video.h" #include "video.h"


src/debug/debug.h → src/lol/debug.h View File

@@ -21,9 +21,9 @@
namespace lol namespace lol
{ {


static void Abort()
static inline void Abort()
{ {
*(int *)NULL = 0;
*(int *)0 = 0xdead;
} }


} /* namespace lol */ } /* namespace lol */

+ 1
- 1
win32/lolcore.vcxproj View File

@@ -133,7 +133,6 @@
<ClInclude Include="..\src\debug\record.h" /> <ClInclude Include="..\src\debug\record.h" />
<ClInclude Include="..\src\debug\sphere.h" /> <ClInclude Include="..\src\debug\sphere.h" />
<ClInclude Include="..\src\debug\stats.h" /> <ClInclude Include="..\src\debug\stats.h" />
<ClInclude Include="..\src\debug\debug.h" />
<ClInclude Include="..\src\dict.h" /> <ClInclude Include="..\src\dict.h" />
<ClInclude Include="..\src\eglapp.h" /> <ClInclude Include="..\src\eglapp.h" />
<ClInclude Include="..\src\emitter.h" /> <ClInclude Include="..\src\emitter.h" />
@@ -152,6 +151,7 @@
<ClInclude Include="..\src\log.h" /> <ClInclude Include="..\src\log.h" />
<ClInclude Include="..\src\loldebug.h" /> <ClInclude Include="..\src\loldebug.h" />
<ClInclude Include="..\src\lolgl.h" /> <ClInclude Include="..\src\lolgl.h" />
<ClInclude Include="..\src\lol\debug.h" />
<ClInclude Include="..\src\lol\math\half.h" /> <ClInclude Include="..\src\lol\math\half.h" />
<ClInclude Include="..\src\lol\math\real.h" /> <ClInclude Include="..\src\lol\math\real.h" />
<ClInclude Include="..\src\lol\math\remez.h" /> <ClInclude Include="..\src\lol\math\remez.h" />


Loading…
Cancel
Save