From 8c4397ee25afbdc873138dd44c03c16f375b9725 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 4 Feb 2015 17:03:52 -0800 Subject: [PATCH] VIDEO: Initial working OSX support --- makefile | 2 +- sim_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 6b852e9b..1a3b31c3 100644 --- a/makefile +++ b/makefile @@ -407,7 +407,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) VIDEO_FEATURES = - video capabilities provided by libSDL2 (Simple Directmedia Layer) $(info using libSDL2: $(call find_lib,SDL2) $(call find_include,SDL2/SDL)) ifeq (Darwin,$(OSTYPE)) - VIDEO_LDFLAGS += -lobjc -framework cocoa + VIDEO_LDFLAGS += -lobjc -framework cocoa -DSDL_MAIN_AVAILABLE endif endif else diff --git a/sim_video.c b/sim_video.c index 1f80399d..d2626183 100644 --- a/sim_video.c +++ b/sim_video.c @@ -175,7 +175,7 @@ while (1) { } } else { - sim_printf ("main(): Ignoring unexpected event: %d\n", event.type); +// sim_printf ("main(): Ignoring unexpected event: %d\n", event.type); } } else {