From 13f06f63f8836691410dea2af76d612c070fd0cf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 8 Dec 2016 17:27:13 +0100 Subject: Added FreeBSD as platform. --- src/platform.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3