mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-24 12:43:03 +00:00
Add FreeBSD defines
This commit is contained in:
parent
da31237ed0
commit
f51688a470
3 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue