mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-23 20:21:24 +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__)
|
||||
#include <malloc.h> // DG: _alloca16 needs that
|
||||
#include <signal.h>
|
||||
#endif
|
||||
// RB end
|
||||
// Yamagi begin
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <signal.h>
|
||||
#endif
|
||||
// Yamagi end
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
|
|
|
@ -103,7 +103,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#endif
|
||||
|
||||
|
||||
#elif defined(__linux__)
|
||||
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
|
||||
#if defined(__i386__)
|
||||
#define CPUSTRING "x86"
|
||||
|
@ -111,8 +111,13 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#define CPUSTRING "x86_86"
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#define BUILD_STRING "freebsd-" CPUSTRING
|
||||
#define BUILD_OS_ID 3
|
||||
#else
|
||||
#define BUILD_STRING "linux-" CPUSTRING
|
||||
#define BUILD_OS_ID 2
|
||||
#endif
|
||||
|
||||
#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
|
||||
|
||||
#elif defined(__linux__)
|
||||
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
|
||||
#include <signal.h>
|
||||
#include <pthread.h>
|
||||
|
|
Loading…
Reference in a new issue