summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/config.h b/config.h
index 15fce0d..cab40be 100644
--- a/config.h
+++ b/config.h
@@ -3,4 +3,39 @@
#define DEBUG 0
+#if defined(__APPLE__) && defined(__MACH__)
+#define PLATFORM_NAME "Mac OS X"
+
+#elif defined(__FreeBSD__)
+#define PLATFORM_NAME "FreeBSD"
+
+#elif defined(__NetBSD__)
+#define PLATFORM_NAME "NetBSD"
+
+#elif defined(__OpenBSD__)
+#define PLATFORM_NAME "OpenBSD"
+
+#elif defined(__MINT__)
+#define PLATFORM_NAME "FreeMiNT"
+
+#elif defined(__bsdi__)
+#define PLATFORM_NAME "BSD/OS"
+
+#elif defined(linux) || defined(__linux__)
+#define PLATFORM_NAME "Linux"
+
+#elif defined(sun)
+#define PLATFORM_NAME "Solaris"
+
+#elif defined(__hpux)
+#define PLATFORM_NAME "HPUX"
+
+#elif defined(__riscos__)
+#define PLATFORM_NAME "RISC OS"
+
+#else
+#define PLATFORM_NAME "Unknown"
+
+#endif
+
#endif