From 736e341fd24af5b35968d1418e89f2ca5c935e8c Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 28 Mar 2016 18:16:59 -0700 Subject: [PATCH] makefile: Fix OS X build to correctly supply input events for video capable sims --- makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefile b/makefile index 1b22051a..807e93b4 100644 --- a/makefile +++ b/makefile @@ -431,6 +431,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) DISPLAYVT = ${DISPLAYD}/vt11.c DISPLAY_OPT += -DUSE_DISPLAY $(VIDEO_CCDEFS) $(VIDEO_LDFLAGS) $(info using libSDL2: $(call find_include,SDL2/SDL)) + ifeq (Darwin,$(OSTYPE)) + VIDEO_CCDEFS += -DSDL_MAIN_AVAILABLE + endif endif else ifneq (,$(call find_include,SDL/SDL)) @@ -442,6 +445,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) DISPLAYVT = ${DISPLAYD}/vt11.c DISPLAY_OPT += -DUSE_DISPLAY $(VIDEO_CCDEFS) $(VIDEO_LDFLAGS) $(info using libSDL: $(call find_include,SDL/SDL)) + ifeq (Darwin,$(OSTYPE)) + VIDEO_CCDEFS += -DSDL_MAIN_AVAILABLE + endif endif endif endif