Browse Source

build: fix a few macro logic issues in SDL.h inclusion.

legacy
Sam Hocevar sam 12 years ago
parent
commit
32753fa130
5 changed files with 7 additions and 10 deletions
  1. +3
    -4
      build/autotools/m4/lol-sdl.m4
  2. +1
    -1
      src/application/application.cpp
  3. +1
    -1
      src/eglapp.cpp
  4. +1
    -3
      src/platform/sdl/sdlapp.cpp
  5. +1
    -1
      src/sys/timer.cpp

+ 3
- 4
build/autotools/m4/lol-sdl.m4 View File

@@ -9,13 +9,12 @@ dnl Defined C/C++ macros:
dnl USE_SDL -- whether SDL or SDL2 were found at all
dnl USE_SDL_IMAGE -- whether SDL_image was found
dnl USE_SDL_MIXER -- whether SDL_mixer was found
dnl HAVE_SDL2_SDL_H -- whether to include <SDL2/SDL.h>
dnl HAVE_SDL_SDL_H -- whether to include <SDL/SDL.h>
dnl HAVE_SDL_H -- whether to include <SDL.h>
dnl Generated automake conditionals:
dnl USE_SDL -- whether SDL or SDL2 were found at all (conditional)
dnl USE_SDL_IMAGE -- whether SDL_image was found (conditional)
dnl USE_SDL_MIXER -- whether SDL_mixer was found (conditional)
dnl USE_SDL -- whether SDL or SDL2 were found at all
dnl USE_SDL_IMAGE -- whether SDL_image was found
dnl USE_SDL_MIXER -- whether SDL_mixer was found
dnl Generated shell variables:
dnl SDL_CFLAGS -- flags for SDL compilation
dnl SDL_LIBS -- flags for SDL linking


+ 1
- 1
src/application/application.cpp View File

@@ -54,7 +54,7 @@ class ApplicationData
#elif defined HAVE_GLES_2X
/* FIXME: this macro is only deactivated if we include "lolgl.h" */
EglApp app;
#elif defined HAVE_SDL_H || defined HAVE_SDL_SDL_H
#elif defined USE_SDL
SdlApp app;
#else
# error No application class available on this platform


+ 1
- 1
src/eglapp.cpp View File

@@ -25,7 +25,7 @@
#endif

#if defined USE_SDL
# if defined HAVE_SDL_H || defined HAVE_SDL_SDL_H
# if defined HAVE_SDL_SDL_H
# include <SDL/SDL.h>
# else
# include <SDL.h>


+ 1
- 3
src/platform/sdl/sdlapp.cpp View File

@@ -13,9 +13,7 @@
#endif

#if defined USE_SDL
# if defined HAVE_SDL2_SDL_H
# include <SDL2/SDL.h>
# elif defined HAVE_SDL_SDL_H
# if defined HAVE_SDL_SDL_H
# include <SDL/SDL.h>
# else
# include <SDL.h>


+ 1
- 1
src/sys/timer.cpp View File

@@ -30,7 +30,7 @@
# include <sys/sys_time.h>
# include <sys/timer.h>
# include <sys/time_util.h>
#elif defined HAVE_SDL_H || defined HAVE_SDL_SDL_H
#elif defined HAVE_SDL_SDL_H
# include <SDL/SDL.h>
#else
# include <SDL.h>


Loading…
Cancel
Save