Add FreeBSD defines

This commit is contained in:
Yamagi Burmeister 2013-01-14 19:00:27 +01:00 committed by Daniel Gibson
parent da31237ed0
commit f51688a470
3 changed files with 12 additions and 3 deletions

View file

@ -60,8 +60,12 @@ If you have questions concerning this license or the applicable additional terms
#elif defined(__linux__) #elif defined(__linux__)
#include <malloc.h> // DG: _alloca16 needs that #include <malloc.h> // DG: _alloca16 needs that
#include <signal.h> #include <signal.h>
#endif
// RB end // RB end
// Yamagi begin
#elif defined(__FreeBSD__)
#include <signal.h>
#endif
// Yamagi end
#ifdef _MSC_VER #ifdef _MSC_VER
#include <intrin.h> #include <intrin.h>

View file

@ -103,7 +103,7 @@ If you have questions concerning this license or the applicable additional terms
#endif #endif
#elif defined(__linux__) #elif defined(__linux__) || defined(__FreeBSD__)
#if defined(__i386__) #if defined(__i386__)
#define CPUSTRING "x86" #define CPUSTRING "x86"
@ -111,8 +111,13 @@ If you have questions concerning this license or the applicable additional terms
#define CPUSTRING "x86_86" #define CPUSTRING "x86_86"
#endif #endif
#ifdef __FreeBSD__
#define BUILD_STRING "freebsd-" CPUSTRING
#define BUILD_OS_ID 3
#else
#define BUILD_STRING "linux-" CPUSTRING #define BUILD_STRING "linux-" CPUSTRING
#define BUILD_OS_ID 2 #define BUILD_OS_ID 2
#endif
#define _alloca alloca #define _alloca alloca

View file

@ -109,7 +109,7 @@ If you have questions concerning this license or the applicable additional terms
#include <windows.h> // for qgl.h #include <windows.h> // for qgl.h
#elif defined(__linux__) #elif defined(__linux__) || defined(__FreeBSD__)
#include <signal.h> #include <signal.h>
#include <pthread.h> #include <pthread.h>