Added missing guards.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 03 Feb 2015 21:22:25 +0100
changeset 9332 e29fec41a2c6
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
--- a/src/audio/coreaudio/SDL_coreaudio.c	Mon Feb 02 01:21:02 2015 -0500
+++ b/src/audio/coreaudio/SDL_coreaudio.c	Tue Feb 03 21:22:25 2015 +0100
@@ -19,6 +19,9 @@
   3. This notice may not be removed or altered from any source distribution.
 */
 #include "../../SDL_internal.h"
+
+#if SDL_AUDIO_DRIVER_COREAUDIO
+
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"
 #include "../SDL_sysaudio.h"
@@ -554,4 +557,6 @@
     "coreaudio", "CoreAudio", COREAUDIO_Init, 0
 };
 
+#endif /* SDL_AUDIO_DRIVER_COREAUDIO */
+
 /* vi: set ts=4 sw=4 expandtab: */
--- a/src/audio/nacl/SDL_naclaudio.c	Mon Feb 02 01:21:02 2015 -0500
+++ b/src/audio/nacl/SDL_naclaudio.c	Tue Feb 03 21:22:25 2015 +0100
@@ -20,6 +20,9 @@
 */
 
 #include "../../SDL_internal.h"
+
+#if SDL_AUDIO_DRIVER_NACL
+
 #include "SDL_naclaudio.h"
 
 #include "SDL_audio.h"
@@ -145,3 +148,7 @@
     NACLAUD_DRIVER_NAME, "SDL NaCl Audio Driver",
     NACLAUD_Init, 0
 };
+
+#endif /* SDL_AUDIO_DRIVER_NACL */
+
+/* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/nacl/SDL_naclevents.c	Mon Feb 02 01:21:02 2015 -0500
+++ b/src/video/nacl/SDL_naclevents.c	Tue Feb 03 21:22:25 2015 +0100
@@ -20,6 +20,8 @@
 */
 #include "../../SDL_internal.h"
 
+#if SDL_VIDEO_DRIVER_NACL
+
 #include "SDL.h"
 #include "../../events/SDL_sysevents.h"
 #include "../../events/SDL_events_c.h"
@@ -430,3 +432,7 @@
     }
   }
 }
+
+#endif /* SDL_VIDEO_DRIVER_NACL */
+
+/* vi: set ts=4 sw=4 expandtab: */