Added missing guards.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 03 Feb 2015 21:22:25 +0100
changeset 9332e29fec41a2c6
parent 9331 bb0b744fd1a6
child 9333 de02c2d8a06f
Added missing guards.
src/audio/coreaudio/SDL_coreaudio.c
src/audio/nacl/SDL_naclaudio.c
src/video/nacl/SDL_naclevents.c
     1.1 --- a/src/audio/coreaudio/SDL_coreaudio.c	Mon Feb 02 01:21:02 2015 -0500
     1.2 +++ b/src/audio/coreaudio/SDL_coreaudio.c	Tue Feb 03 21:22:25 2015 +0100
     1.3 @@ -19,6 +19,9 @@
     1.4    3. This notice may not be removed or altered from any source distribution.
     1.5  */
     1.6  #include "../../SDL_internal.h"
     1.7 +
     1.8 +#if SDL_AUDIO_DRIVER_COREAUDIO
     1.9 +
    1.10  #include "SDL_audio.h"
    1.11  #include "../SDL_audio_c.h"
    1.12  #include "../SDL_sysaudio.h"
    1.13 @@ -554,4 +557,6 @@
    1.14      "coreaudio", "CoreAudio", COREAUDIO_Init, 0
    1.15  };
    1.16  
    1.17 +#endif /* SDL_AUDIO_DRIVER_COREAUDIO */
    1.18 +
    1.19  /* vi: set ts=4 sw=4 expandtab: */
     2.1 --- a/src/audio/nacl/SDL_naclaudio.c	Mon Feb 02 01:21:02 2015 -0500
     2.2 +++ b/src/audio/nacl/SDL_naclaudio.c	Tue Feb 03 21:22:25 2015 +0100
     2.3 @@ -20,6 +20,9 @@
     2.4  */
     2.5  
     2.6  #include "../../SDL_internal.h"
     2.7 +
     2.8 +#if SDL_AUDIO_DRIVER_NACL
     2.9 +
    2.10  #include "SDL_naclaudio.h"
    2.11  
    2.12  #include "SDL_audio.h"
    2.13 @@ -145,3 +148,7 @@
    2.14      NACLAUD_DRIVER_NAME, "SDL NaCl Audio Driver",
    2.15      NACLAUD_Init, 0
    2.16  };
    2.17 +
    2.18 +#endif /* SDL_AUDIO_DRIVER_NACL */
    2.19 +
    2.20 +/* vi: set ts=4 sw=4 expandtab: */
     3.1 --- a/src/video/nacl/SDL_naclevents.c	Mon Feb 02 01:21:02 2015 -0500
     3.2 +++ b/src/video/nacl/SDL_naclevents.c	Tue Feb 03 21:22:25 2015 +0100
     3.3 @@ -20,6 +20,8 @@
     3.4  */
     3.5  #include "../../SDL_internal.h"
     3.6  
     3.7 +#if SDL_VIDEO_DRIVER_NACL
     3.8 +
     3.9  #include "SDL.h"
    3.10  #include "../../events/SDL_sysevents.h"
    3.11  #include "../../events/SDL_events_c.h"
    3.12 @@ -430,3 +432,7 @@
    3.13      }
    3.14    }
    3.15  }
    3.16 +
    3.17 +#endif /* SDL_VIDEO_DRIVER_NACL */
    3.18 +
    3.19 +/* vi: set ts=4 sw=4 expandtab: */