aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Shafer <ashafer@badland.io>2020-07-07 22:49:41 -0400
committerGitHub <noreply@github.com>2020-07-07 22:49:41 -0400
commit52b1f4f1029208e47516f679a906820e10dbbd47 (patch)
treeb0542bf038bc1e0653d9a3352171ee58707428b5 /src
parent712dcac7e4f5f50d685d060a5f3f6115b70334f1 (diff)
downloadamber-52b1f4f1029208e47516f679a906820e10dbbd47.tar.gz
Add support for FreeBSD (#881)
Create platform definitions required for building on FreeBSD.
Diffstat (limited to 'src')
-rw-r--r--src/platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform.h b/src/platform.h
index 6578494..fc37dd4 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -22,6 +22,9 @@ namespace amber {
#elif defined(__linux__)
#define AMBER_PLATFORM_LINUX 1
#define AMBER_PLATFORM_POSIX 1
+#elif defined(__FreeBSD__)
+#define AMBER_PLATFORM_FREEBSD 1
+#define AMBER_PLATFORM_POSIX 1
#elif defined(__APPLE__)
#define AMBER_PLATFORM_APPLE 1
#define AMBER_PLATFORM_POSIX 1
@@ -39,6 +42,10 @@ namespace amber {
#define AMBER_PLATFORM_LINUX 0
#endif
+#if !defined(AMBER_PLATFORM_FREEBSD)
+#define AMBER_PLATFORM_FREEBSD 0
+#endif
+
#if !defined(AMBER_PLATFORM_APPLE)
#define AMBER_PLATFORM_APPLE 0
#endif