audio: Don't wrap bootstrap declarations in preprocessor macros.
authorRyan C. Gordon
Mon, 13 Feb 2017 16:59:02 -0500
changeset 10884ef3983cd6645
parent 10883 c6b2a9e91f91
child 10885 4528f2a99fb7
audio: Don't wrap bootstrap declarations in preprocessor macros.

They are harmless and ignored if we don't actually link against them. The
preprocessor checks elsewhere if they're actually used.
src/audio/SDL_sysaudio.h
     1.1 --- a/src/audio/SDL_sysaudio.h	Mon Feb 13 16:56:41 2017 -0500
     1.2 +++ b/src/audio/SDL_sysaudio.h	Mon Feb 13 16:59:02 2017 -0500
     1.3 @@ -179,77 +179,30 @@
     1.4      int demand_only;  /* 1==request explicitly, or it won't be available. */
     1.5  } AudioBootStrap;
     1.6  
     1.7 -#if SDL_AUDIO_DRIVER_PULSEAUDIO
     1.8 +/* Not all of these are available in a given build. Use #ifdefs, etc. */
     1.9  extern AudioBootStrap PULSEAUDIO_bootstrap;
    1.10 -#endif
    1.11 -#if SDL_AUDIO_DRIVER_ALSA
    1.12  extern AudioBootStrap ALSA_bootstrap;
    1.13 -#endif
    1.14 -#if SDL_AUDIO_DRIVER_SNDIO
    1.15  extern AudioBootStrap SNDIO_bootstrap;
    1.16 -#endif
    1.17 -#if SDL_AUDIO_DRIVER_BSD
    1.18  extern AudioBootStrap BSD_AUDIO_bootstrap;
    1.19 -#endif
    1.20 -#if SDL_AUDIO_DRIVER_OSS
    1.21  extern AudioBootStrap DSP_bootstrap;
    1.22 -#endif
    1.23 -#if SDL_AUDIO_DRIVER_QSA
    1.24  extern AudioBootStrap QSAAUDIO_bootstrap;
    1.25 -#endif
    1.26 -#if SDL_AUDIO_DRIVER_SUNAUDIO
    1.27  extern AudioBootStrap SUNAUDIO_bootstrap;
    1.28 -#endif
    1.29 -#if SDL_AUDIO_DRIVER_ARTS
    1.30  extern AudioBootStrap ARTS_bootstrap;
    1.31 -#endif
    1.32 -#if SDL_AUDIO_DRIVER_ESD
    1.33  extern AudioBootStrap ESD_bootstrap;
    1.34 -#endif
    1.35 -#if SDL_AUDIO_DRIVER_NACL
    1.36  extern AudioBootStrap NACLAUDIO_bootstrap;
    1.37 -#endif
    1.38 -#if SDL_AUDIO_DRIVER_NAS
    1.39  extern AudioBootStrap NAS_bootstrap;
    1.40 -#endif
    1.41 -#if SDL_AUDIO_DRIVER_XAUDIO2
    1.42  extern AudioBootStrap XAUDIO2_bootstrap;
    1.43 -#endif
    1.44 -#if SDL_AUDIO_DRIVER_DSOUND
    1.45  extern AudioBootStrap DSOUND_bootstrap;
    1.46 -#endif
    1.47 -#if SDL_AUDIO_DRIVER_WINMM
    1.48  extern AudioBootStrap WINMM_bootstrap;
    1.49 -#endif
    1.50 -#if SDL_AUDIO_DRIVER_PAUDIO
    1.51  extern AudioBootStrap PAUDIO_bootstrap;
    1.52 -#endif
    1.53 -#if SDL_AUDIO_DRIVER_HAIKU
    1.54  extern AudioBootStrap HAIKUAUDIO_bootstrap;
    1.55 -#endif
    1.56 -#if SDL_AUDIO_DRIVER_COREAUDIO
    1.57  extern AudioBootStrap COREAUDIO_bootstrap;
    1.58 -#endif
    1.59 -#if SDL_AUDIO_DRIVER_DISK
    1.60  extern AudioBootStrap DISKAUDIO_bootstrap;
    1.61 -#endif
    1.62 -#if SDL_AUDIO_DRIVER_DUMMY
    1.63  extern AudioBootStrap DUMMYAUDIO_bootstrap;
    1.64 -#endif
    1.65 -#if SDL_AUDIO_DRIVER_FUSIONSOUND
    1.66  extern AudioBootStrap FUSIONSOUND_bootstrap;
    1.67 -#endif
    1.68 -#if SDL_AUDIO_DRIVER_ANDROID
    1.69  extern AudioBootStrap ANDROIDAUDIO_bootstrap;
    1.70 -#endif
    1.71 -#if SDL_AUDIO_DRIVER_PSP
    1.72  extern AudioBootStrap PSPAUDIO_bootstrap;
    1.73 -#endif
    1.74 -#if SDL_AUDIO_DRIVER_EMSCRIPTEN
    1.75  extern AudioBootStrap EMSCRIPTENAUDIO_bootstrap;
    1.76 -#endif
    1.77 -
    1.78 -
    1.79  
    1.80  #endif /* SDL_sysaudio_h_ */
    1.81