summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/platform.h')
-rw-r--r--crawl-ref/source/platform.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/platform.h b/crawl-ref/source/platform.h
index 654f35470d..635d94f6e2 100644
--- a/crawl-ref/source/platform.h
+++ b/crawl-ref/source/platform.h
@@ -262,12 +262,19 @@
#endif
#if !defined (OS_DETECTED)
-#if defined (__APPLE__) || defined (__MACH__)
+#if defined (__APPLE__)
#define OS_DETECTED
#define TARGET_OS_MACOSX
#endif
#endif
+#if !defined (OS_DETECTED)
+#if defined (__hurd__)
+#define OS_DETECTED
+#define TARGET_OS_HURD
+#endif
+#endif
+
#if defined (_LP64) || defined (__LP64__) || defined (_M_X64) || defined(_M_IA64)
#define TARGET_CPU_BITS 64
#else