Search for SDL.h in addition to SDL/SDL.h
This commit is contained in:
@@ -30,7 +30,11 @@
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SDL_SDL_H
|
||||
#include <SDL/SDL.h>
|
||||
#elif defined(HAVE_SDL_H)
|
||||
#include <SDL.h>
|
||||
#endif
|
||||
|
||||
static void *sdl_handle;
|
||||
#define MAKE_FUNC(x) static typeof(x) * p##x
|
||||
|
||||
+5
-2
@@ -323,8 +323,11 @@ ENDIF()
|
||||
|
||||
# Check SDL backend
|
||||
IF(SDL)
|
||||
CHECK_INCLUDE_FILE(SDL/SDL.h HAVE_SDL_SDL_H)
|
||||
IF(HAVE_SDL_SDL_H)
|
||||
CHECK_INCLUDE_FILE(SDL.h HAVE_SDL_H)
|
||||
IF(NOT HAVE_SDL_H)
|
||||
CHECK_INCLUDE_FILE(SDL/SDL.h HAVE_SDL_SDL_H)
|
||||
ENDIF()
|
||||
IF(HAVE_SDL_H OR HAVE_SDL_SDL_H)
|
||||
CHECK_LIBRARY_EXISTS(SDL SDL_Init "" HAVE_LIBSDL)
|
||||
IF(HAVE_DLFCN_H OR HAVE_LIBSDL)
|
||||
SET(HAVE_SDL 1)
|
||||
|
||||
@@ -37,6 +37,12 @@
|
||||
/* Define if we have stdint.h */
|
||||
#cmakedefine HAVE_STDINT_H
|
||||
|
||||
/* Define if we have SDL/SDL.h */
|
||||
#cmakedefine HAVE_SDL_SDL_H
|
||||
|
||||
/* Define if we have SDL.h */
|
||||
#cmakedefine HAVE_SDL_H
|
||||
|
||||
/* Define if we have the __int64 type */
|
||||
#cmakedefine HAVE___INT64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user