diff --git a/Makefile.common b/Makefile.common index 7d9cbdf7df..d9af654f72 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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