summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-12-08 17:27:13 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-12-08 17:27:13 +0100
commit13f06f63f8836691410dea2af76d612c070fd0cf (patch)
tree43c1270d309a73c646d4f7028cc6af796d8911fb
parentfdc4a7bfba1af7bdcada4279d6c491508cff6f31 (diff)
Added FreeBSD as platform.
-rw-r--r--src/platform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/platform.h b/src/platform.h
index 0357f15..205c54f 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -30,7 +30,8 @@
#define DG_PLATFORM_LINUX 1 //!< Platform is Linux based.
#define DG_PLATFORM_WINDOWS 2 //!< Platform is Windows based
#define DG_PLATFORM_OSX 3 //!< Platform is MacOSX based.
-#define DG_PLATFORM_UNIX 4 //!< Platform is Unix based.
+#define DG_PLATFORM_FREEBSD 4 //!< Platform is FreeBSD based.
+#define DG_PLATFORM_UNIX 5 //!< Platform is Unix based.
#ifdef __linux__
#define DG_PLATFORM DG_PLATFORM_LINUX
@@ -44,6 +45,9 @@
#elif __APPLE__
#define DG_PLATFORM DG_PLATFORM_OSX
+#elif __FreeBSD__
+ #define DG_PLATFORM DG_PLATFORM_FREEBSD
+
#elif __unix__
// All other unices (*BSD etc)
#define DG_PLATFORM DG_PLATFORM_UNIX