fix build with GP2XCROSS
This commit is contained in:
parent
fe5a9c3278
commit
e278d0551c
@ -508,7 +508,8 @@ endif
|
||||
CC = /opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/arm-open2x-linux-gcc
|
||||
BIN = ../bin/grafx2.gpe
|
||||
SDLCONFIG = /opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/sdl-config
|
||||
COPT = -W -Wall -Wdeclaration-after-statement -pedantic -std=c99 -static -g -O$(OPTIM)
|
||||
COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -static -g -O$(OPTIM)
|
||||
COPT += -D_XOPEN_SOURCE=500
|
||||
COPT += -I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
|
||||
COPT += $(shell $(SDLCONFIG) --cflags)
|
||||
COPT += -D__GP2X__ $(TTFCOPT) $(JOYCOPT) $(LUACOPT)
|
||||
|
||||
@ -24,8 +24,10 @@
|
||||
#include <string.h>
|
||||
#if defined(USE_SDL) || defined(USE_SDL2)
|
||||
#include <SDL.h>
|
||||
#if (defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11)) || defined(__WIN32__)
|
||||
#include <SDL_syswm.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
|
||||
@ -33,8 +33,11 @@
|
||||
#include <windows.h> // for HWND
|
||||
#endif
|
||||
#if defined(USE_SDL) || defined(USE_SDL2)
|
||||
#include <SDL.h>
|
||||
#if defined(SDL_VIDEO_DRIVER_X11)
|
||||
#include <SDL_syswm.h> // for Display, Window
|
||||
#endif
|
||||
#endif
|
||||
#if defined(USE_X11)
|
||||
#include <X11/Xlib.h> // for Display, Window
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user