added support for special media buttons on Amazon Fire TV remote control
[rocksndiamonds.git] / src / libgame / platform.h
index d5d939a6d1c75d70933ea208ff159927394293a7..2fe3be79d5e0a76320ac52e9e991ffb5f5a3fadc 100644 (file)
@@ -1,15 +1,13 @@
-/***********************************************************
-* Artsoft Retro-Game Library                               *
-*----------------------------------------------------------*
-* (c) 1994-2006 Artsoft Entertainment                      *
-*               Holger Schemel                             *
-*               Detmolder Strasse 189                      *
-*               33604 Bielefeld                            *
-*               Germany                                    *
-*               e-mail: info@artsoft.org                   *
-*----------------------------------------------------------*
-* platform.h                                               *
-***********************************************************/
+// ============================================================================
+// Artsoft Retro-Game Library
+// ----------------------------------------------------------------------------
+// (c) 1995-2014 by Artsoft Entertainment
+//                         Holger Schemel
+//                 info@artsoft.org
+//                 http://www.artsoft.org/
+// ----------------------------------------------------------------------------
+// platform.h
+// ============================================================================
 
 #ifndef PLATFORM_H
 #define PLATFORM_H
 /* define main platform keywords                                             */
 /* ========================================================================= */
 
-#if defined(MSDOS)
-#define PLATFORM_MSDOS
-#define PLATFORM_STRING "DOS"
-#elif defined(WIN32) || defined(_WIN32)
+#if defined(WIN32) || defined(_WIN32)
 #define PLATFORM_WIN32
 #define PLATFORM_STRING "Windows"
 #else
 #define PLATFORM_STRING "Windows CE"
 #endif
 
+#if defined(__ANDROID__)
+#define PLATFORM_ANDROID
+#undef  PLATFORM_STRING
+#define PLATFORM_STRING "Android"
+#endif
+
 
 /* ========================================================================= */
 /* define additional target keywords                                         */
 /* ========================================================================= */
 
-#if defined(PLATFORM_MSDOS)
-#ifndef TARGET_ALLEGRO
-#define TARGET_ALLEGRO
-#endif
-#ifndef TARGET_X11
-#define TARGET_X11
-#endif
-#endif
-
-#if defined(PLATFORM_UNIX) && defined(TARGET_X11)
-#define TARGET_X11_NATIVE
-#endif
-
 #if defined(TARGET_SDL2)
 #ifndef TARGET_SDL
 #define TARGET_SDL