Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed some preprocessor mistakes introduced in iOS project cleanup.
  • Loading branch information
icculus committed Nov 3, 2011
1 parent ee9413e commit 58b6bff
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -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

Expand Down Expand Up @@ -86,7 +86,7 @@ static int (*ALSA_snd_pcm_wait)(snd_pcm_t *, int);
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

Expand Down Expand Up @@ -149,7 +149,7 @@ load_alsa_syms(void)

#undef SDL_ALSA_SYM

#if SDL_AUDIO_DRIVER_ALSA_DYNAMIC
#ifdef SDL_AUDIO_DRIVER_ALSA_DYNAMIC

static void
UnloadALSALibrary(void)
Expand Down
4 changes: 2 additions & 2 deletions src/audio/arts/SDL_artsaudio.c
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/esd/SDL_esdaudio.c
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/fusionsound/SDL_fsaudio.c
Expand Up @@ -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
Expand All @@ -53,7 +53,7 @@ typedef DFBResult DirectResult;
/* 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;
Expand Down
4 changes: 2 additions & 2 deletions src/audio/nas/SDL_nasaudio.c
Expand Up @@ -52,7 +52,7 @@ static AuEventHandlerRec *(*NAS_AuRegisterEventHandler)
(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;
Expand Down Expand Up @@ -91,7 +91,7 @@ load_nas_syms(void)

#undef SDL_NAS_SYM

#if SDL_AUDIO_DRIVER_NAS_DYNAMIC
#ifdef SDL_AUDIO_DRIVER_NAS_DYNAMIC

static void
UnloadNASLibrary(void)
Expand Down
2 changes: 1 addition & 1 deletion src/audio/pulseaudio/SDL_pulseaudio.c
Expand Up @@ -106,7 +106,7 @@ static void (*PULSEAUDIO_pa_stream_unref) (pa_stream *);
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;
Expand Down

0 comments on commit 58b6bff

Please sign in to comment.