Fixed some preprocessor mistakes introduced in iOS project cleanup.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 03 Nov 2011 11:51:47 -0400
changeset 6046 3b33b82cdbac
parent 6045 b8e995dab018
child 6051 cb1f941ce38e
Fixed some preprocessor mistakes introduced in iOS project cleanup.
src/audio/alsa/SDL_alsa_audio.c
src/audio/arts/SDL_artsaudio.c
src/audio/esd/SDL_esdaudio.c
src/audio/fusionsound/SDL_fsaudio.c
src/audio/nas/SDL_nasaudio.c
src/audio/pulseaudio/SDL_pulseaudio.c
--- a/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 31 23:37:57 2011 -0400
+++ b/src/audio/alsa/SDL_alsa_audio.c	Thu Nov 03 11:51:47 2011 -0400
@@ -35,7 +35,7 @@
 #include "../SDL_audio_c.h"
 #include "SDL_alsa_audio.h"
 
-#if SDL_AUDIO_DRIVER_ALSA_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
 #include "SDL_loadso.h"
 #endif
 
@@ -86,7 +86,7 @@
 static int (*ALSA_snd_pcm_sw_params_set_avail_min)
   (snd_pcm_t *, snd_pcm_sw_params_t *, snd_pcm_uframes_t);
 
-#if SDL_AUDIO_DRIVER_ALSA_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
 #define snd_pcm_hw_params_sizeof ALSA_snd_pcm_hw_params_sizeof
 #define snd_pcm_sw_params_sizeof ALSA_snd_pcm_sw_params_sizeof
 
@@ -149,7 +149,7 @@
 
 #undef SDL_ALSA_SYM
 
-#if SDL_AUDIO_DRIVER_ALSA_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
 
 static void
 UnloadALSALibrary(void)
--- a/src/audio/arts/SDL_artsaudio.c	Mon Oct 31 23:37:57 2011 -0400
+++ b/src/audio/arts/SDL_artsaudio.c	Thu Nov 03 11:51:47 2011 -0400
@@ -36,14 +36,14 @@
 #include "../SDL_audio_c.h"
 #include "SDL_artsaudio.h"
 
-#if SDL_AUDIO_DRIVER_ARTS_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
 #include "SDL_name.h"
 #include "SDL_loadso.h"
 #else
 #define SDL_NAME(X)	X
 #endif
 
-#if SDL_AUDIO_DRIVER_ARTS_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
 
 static const char *arts_library = SDL_AUDIO_DRIVER_ARTS_DYNAMIC;
 static void *arts_handle = NULL;
--- a/src/audio/esd/SDL_esdaudio.c	Mon Oct 31 23:37:57 2011 -0400
+++ b/src/audio/esd/SDL_esdaudio.c	Thu Nov 03 11:51:47 2011 -0400
@@ -36,14 +36,14 @@
 #include "../SDL_audio_c.h"
 #include "SDL_esdaudio.h"
 
-#if SDL_AUDIO_DRIVER_ESD_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ESD_DYNAMIC
 #include "SDL_name.h"
 #include "SDL_loadso.h"
 #else
 #define SDL_NAME(X)	X
 #endif
 
-#if SDL_AUDIO_DRIVER_ESD_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_ESD_DYNAMIC
 
 static const char *esd_library = SDL_AUDIO_DRIVER_ESD_DYNAMIC;
 static void *esd_handle = NULL;
--- a/src/audio/fusionsound/SDL_fsaudio.c	Mon Oct 31 23:37:57 2011 -0400
+++ b/src/audio/fusionsound/SDL_fsaudio.c	Thu Nov 03 11:51:47 2011 -0400
@@ -39,7 +39,7 @@
 
 //#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
 
-#if SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
 #include "SDL_name.h"
 #include "SDL_loadso.h"
 #else
@@ -53,7 +53,7 @@
 /* Buffers to use - more than 2 gives a lot of latency */
 #define FUSION_BUFFERS				(2)
 
-#if SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
 
 static const char *fs_library = SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC;
 static void *fs_handle = NULL;
--- a/src/audio/nas/SDL_nasaudio.c	Mon Oct 31 23:37:57 2011 -0400
+++ b/src/audio/nas/SDL_nasaudio.c	Thu Nov 03 11:51:47 2011 -0400
@@ -52,7 +52,7 @@
   (AuServer *, AuMask, int, AuID, AuEventHandlerCallback, AuPointer);
 
 
-#if SDL_AUDIO_DRIVER_NAS_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_NAS_DYNAMIC
 
 static const char *nas_library = SDL_AUDIO_DRIVER_NAS_DYNAMIC;
 static void *nas_handle = NULL;
@@ -91,7 +91,7 @@
 
 #undef SDL_NAS_SYM
 
-#if SDL_AUDIO_DRIVER_NAS_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_NAS_DYNAMIC
 
 static void
 UnloadNASLibrary(void)
--- a/src/audio/pulseaudio/SDL_pulseaudio.c	Mon Oct 31 23:37:57 2011 -0400
+++ b/src/audio/pulseaudio/SDL_pulseaudio.c	Thu Nov 03 11:51:47 2011 -0400
@@ -106,7 +106,7 @@
 static int load_pulseaudio_syms(void);
 
 
-#if SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
+#ifdef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
 
 static const char *pulseaudio_library = SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC;
 static void *pulseaudio_handle = NULL;