summaryrefslogtreecommitdiff
path: root/src/video/pandora
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-10-31 05:56:58 -0400
committerSam Lantinga <slouken@libsdl.org>2011-10-31 05:56:58 -0400
commit07b4a2ffe6a33667d09fbe4693d4c977b2f3d100 (patch)
tree0c97c27488f1b550ada2af5270b321833378a7ac /src/video/pandora
parente19a2fbe61685250e0db0d972253250cc85c4809 (diff)
Lots of fixes importing SDL source wholesale into a new iOS project
--HG-- rename : src/libm/math.h => src/libm/math_libm.h
Diffstat (limited to 'src/video/pandora')
-rw-r--r--src/video/pandora/SDL_pandora.c6
-rw-r--r--src/video/pandora/SDL_pandora_events.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/video/pandora/SDL_pandora.c b/src/video/pandora/SDL_pandora.c
index f0a5ec88..880a221f 100644
--- a/src/video/pandora/SDL_pandora.c
+++ b/src/video/pandora/SDL_pandora.c
@@ -18,9 +18,11 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
+#include "SDL_config.h"
+
+#if SDL_VIDEO_DRIVER_PANDORA
/* SDL internals */
-#include "SDL_config.h"
#include "../SDL_sysvideo.h"
#include "SDL_version.h"
#include "SDL_syswm.h"
@@ -863,4 +865,6 @@ PND_gl_deletecontext(_THIS, SDL_GLContext context)
return;
}
+#endif /* SDL_VIDEO_DRIVER_PANDORA */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/src/video/pandora/SDL_pandora_events.c b/src/video/pandora/SDL_pandora_events.c
index c7136656..c6b22b18 100644
--- a/src/video/pandora/SDL_pandora_events.c
+++ b/src/video/pandora/SDL_pandora_events.c
@@ -20,6 +20,8 @@
*/
#include "SDL_config.h"
+#if SDL_VIDEO_DRIVER_PANDORA
+
/* Being a null driver, there's no event stream. We just define stubs for
most of the API. */
@@ -31,4 +33,6 @@ PND_PumpEvents(_THIS)
/* Not implemented. */
}
+#endif /* SDL_VIDEO_DRIVER_PANDORA */
+
/* vi: set ts=4 sw=4 expandtab: */