Use positive HAVE_SCREENSHOTS rather than a negative ifdef.

This commit is contained in:
Themaister 2012-03-25 23:41:20 +02:00
parent d73ec9b645
commit c79e536b17
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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();