From 5e3cb3d7694a83f430da254ddfc18f041e38636d Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Sun, 7 Feb 2016 12:47:30 -0600 Subject: [PATCH] clean defines --- src/joystick_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/joystick_driver.c b/src/joystick_driver.c index ac596c3..9e24630 100644 --- a/src/joystick_driver.c +++ b/src/joystick_driver.c @@ -55,7 +55,7 @@ int g_joystick_num_axes = 0; int g_joystick_num_buttons = 0; -#ifdef __linux__ +#if defined(__linux__) && !defined(JOYSTICK_DEFINED) # define JOYSTICK_DEFINED void joystick_init() @@ -148,7 +148,7 @@ joystick_update_buttons() } #endif /* LINUX */ -#ifdef _WIN32 +#if defined(_WIN32) && !defined(JOYSTICK_DEFINED) # define JOYSTICK_DEFINED void joystick_init() @@ -257,7 +257,7 @@ joystick_update_buttons() #endif -#ifdef HAVE_SDL +#if defined(HAVE_SDL) && !defined(JOYSTICK_DEFINED) # define JOYSTICK_DEFINED void joystick_init()