projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20140114-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
platform.h
diff --git
a/src/libgame/platform.h
b/src/libgame/platform.h
index 1e6d1c0f013f66cb87e8ec4e2fa7f2bdac523795..c968255906623bc6a1cf696d96d3e877512d7357 100644
(file)
--- a/
src/libgame/platform.h
+++ b/
src/libgame/platform.h
@@
-152,6
+152,12
@@
#define PLATFORM_STRING "Windows CE"
#endif
#define PLATFORM_STRING "Windows CE"
#endif
+#if defined(__ANDROID__)
+#define PLATFORM_ANDROID
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "Android"
+#endif
+
/* ========================================================================= */
/* define additional target keywords */
/* ========================================================================= */
/* define additional target keywords */
@@
-170,6
+176,12
@@
#define TARGET_X11_NATIVE
#endif
#define TARGET_X11_NATIVE
#endif
+#if defined(TARGET_SDL2)
+#ifndef TARGET_SDL
+#define TARGET_SDL
+#endif
+#endif
+
/* ========================================================================= */
/* this should better go into "system.h" or "features.h" (yet to be created) */
/* ========================================================================= */
/* this should better go into "system.h" or "features.h" (yet to be created) */