rnd-20040814-1-src
[rocksndiamonds.git] / src / libgame / platform.h
index 94c5c4a8bc994d0785b49e359f4c46ed67fdf14d..baabd7e102080c53bae2efeb6eb7f610bd205bce 100644 (file)
@@ -26,6 +26,7 @@
 #define PLATFORM_UNIX
 #endif
 
+
 /* ========================================================================= */
 /* define additional keywords for MS-DOS platform                            */
 /* ========================================================================= */
@@ -42,6 +43,7 @@
 
 #endif
 
+
 /* ========================================================================= */
 /* define additional keywords for several Unix platforms                     */
 /* ========================================================================= */
 
 #if defined(__FreeBSD__)
 #define PLATFORM_FREEBSD
+#define PLATFORM_BSD
 #endif
 
 #if defined(__NetBSD__)
 #define PLATFORM_NETBSD
+#define PLATFORM_BSD
 #endif
 
 #if defined(__bsdi__)
 #define PLATFORM_BSDI
+#define PLATFORM_BSD
 #endif
 
-#if defined(sparc) || defined(sun)
-#define PLATFORM_SOLARIS
+#if defined(sparc) && defined(sun)
+#define PLATFORM_SUNOS
 #endif
 
 #if defined(__APPLE__) && defined(__MACH__)
 #define PLATFORM_MACOSX
 #endif
 
+#if defined(NeXT)
+#define PLATFORM_NEXT
+#endif
+
 /* detecting HP-UX by the following compiler keyword definitions:
    - in K&R mode (the default), the HP C compiler defines "hpux"
    - in ANSI mode (-Aa or -Ae), the HP C compiler defines "__hpux"
 #define PLATFORM_HPUX
 #endif
 
+
+/* ========================================================================= */
+/* this should better go into "system.h" or "features.h" (yet to be created) */
+/* ========================================================================= */
+
+#if defined(PLATFORM_UNIX) || defined(TARGET_SDL)
+#define NETWORK_AVALIABLE
+#endif
+
+
 #endif /* PLATFORM_H */