stb_image / Python 3.x bindings not C89-compatible

This commit is contained in:
twinaphex 2015-06-30 14:17:09 +02:00
parent 263323248b
commit 4fb3a7f1b7

View File

@ -196,10 +196,13 @@ OBJ += frontend/frontend.o \
OBJ += gfx/image/image.o
ifneq ($(C89_BUILD), 1)
# stb_image is not a C89-compliant API.
ifeq ($(HAVE_IMAGEVIEWER), 1)
DEFINES += -DHAVE_IMAGEVIEWER
OBJ += cores/image_core.o
endif
endif
# Qt
@ -227,11 +230,14 @@ ifeq ($(HAVE_STDIN_CMD), 1)
DEFINES += -DHAVE_COMMAND -DHAVE_STDIN_CMD
endif
ifneq ($(C89_BUILD), 1)
# Python 3.x bindings are not C89-compliant.
ifeq ($(HAVE_PYTHON), 1)
DEFINES += $(PYTHON_CFLAGS) -Wno-unused-parameter
LIBS += $(PYTHON_LIBS)
OBJ += gfx/video_state_python.o
endif
endif
ifeq ($(OSX), 1)
DEFINES += -Wno-invalid-source-encoding