rnd-20001128-1-src
[rocksndiamonds.git] / src / platform.h
index 903f1165012131a01990fab5fd5eec37c19a1478..6c40c6958d3c99f9a827a27d1056ead3440b639f 100644 (file)
 #define PLATFORM_UNIX
 #endif
 
+/* define additional keywords for several Unix platforms */
+
+#if defined(__FreeBSD__)
+#define PLATFORM_FREEBSD
+#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"
+   - the gcc (Gnu) C compiler defines "__hpux__"
+   Thanks to Jarkko Hietaniemi  for this note. */
+
+#if defined(__hpux__) || defined(__hpux) || defined(hpux)
+#define PLATFORM_HPUX
+#endif
+
 #endif /* PLATFORM_H */