diff --git a/Makefile b/Makefile index 825aeafb7f..8eaa29ec79 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ JOYCONFIG_OBJ = tools/ssnes-joyconfig.o conf/config_file.o compat/compat.o HEADERS = $(wildcard */*.h) $(wildcard *.h) LIBS = -lm -DEFINES = -DHAVE_CONFIG_H +DEFINES = -DHAVE_CONFIG_H -DHAVE_SCREENSHOTS -DHAVE_BSV_MOVIE ifeq ($(REENTRANT_TEST), 1) DEFINES += -Dmain=ssnes_main diff --git a/Makefile.win b/Makefile.win index 1a9bb5acb8..1fb5a73982 100644 --- a/Makefile.win +++ b/Makefile.win @@ -30,7 +30,7 @@ endif libsnes ?= -lsnes LIBS = -lm -DEFINES = -I. -DHAVE_CONFIGFILE -DPACKAGE_VERSION=\"0.9.5\" +DEFINES = -I. -DHAVE_CONFIGFILE -DHAVE_SCREENSHOTS -DHAVE_BSV_MOVIE -DPACKAGE_VERSION=\"0.9.5\" LDFLAGS = -L. -static-libgcc LDCXXFLAGS = -s diff --git a/ssnes.c b/ssnes.c index 7132bc157e..472f1a315a 100644 --- a/ssnes.c +++ b/ssnes.c @@ -97,7 +97,7 @@ static inline unsigned lines_to_pitch(unsigned height) return g_extern.system.pitch; } -#ifndef HAVE_SCREENSHOTS_BUILTIN +#ifdef HAVE_SCREENSHOTS static void take_screenshot(void) { if (!(*g_settings.screenshot_directory)) @@ -2045,7 +2045,7 @@ static void check_cheats(void) } #endif -#ifndef HAVE_SCREENSHOTS_BUILTIN +#ifdef HAVE_SCREENSHOTS static void check_screenshot(void) { static bool old_pressed = false; @@ -2107,7 +2107,7 @@ static void check_netplay_flip(void) static void do_state_checks(void) { -#ifndef HAVE_SCREENSHOTS_BUILTIN +#ifdef HAVE_SCREENSHOTS check_screenshot(); #endif check_mute();