X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fplatform.h;h=c968255906623bc6a1cf696d96d3e877512d7357;hb=a7c06161253796a30a0237a7f5a044f459c8cf35;hp=1e6d1c0f013f66cb87e8ec4e2fa7f2bdac523795;hpb=590e9a86daa2b0d3923673bfe02525766224808e;p=rocksndiamonds.git diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 1e6d1c0f..c9682559 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -152,6 +152,12 @@ #define PLATFORM_STRING "Windows CE" #endif +#if defined(__ANDROID__) +#define PLATFORM_ANDROID +#undef PLATFORM_STRING +#define PLATFORM_STRING "Android" +#endif + /* ========================================================================= */ /* define additional target keywords */ @@ -170,6 +176,12 @@ #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) */