Exclude SDL2 for C89 builds

This commit is contained in:
twinaphex 2015-09-20 10:13:18 +02:00
parent 2b840c0384
commit 49ec5a08d2

View File

@ -669,6 +669,8 @@ ifeq ($(HAVE_SDL), 1)
LIBS += $(SDL_LIBS)
endif
# SDL_syswm.h is not C89/C90-compliant.
ifneq ($(C89_BUILD), 1)
ifeq ($(HAVE_SDL2), 1)
OBJ += gfx/drivers/sdl2_gfx.o \
input/drivers/sdl_input.o \
@ -684,6 +686,7 @@ ifeq ($(HAVE_SDL2), 1)
LIBS += $(SDL2_LIBS)
HAVE_SDL = 0
endif
endif
ifeq ($(HAVE_OMAP), 1)
OBJ += gfx/drivers/omap_gfx.o