mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
common: port: always include unistd.h for POSIX systems
This commit is contained in:
@@ -22,14 +22,16 @@ GNU General Public License for more details.
|
||||
#include <limits.h>
|
||||
#include "build.h"
|
||||
|
||||
#if XASH_POSIX
|
||||
#include <unistd.h>
|
||||
#define OS_LIB_PREFIX "lib"
|
||||
#endif
|
||||
|
||||
#if XASH_APPLE
|
||||
#include <sys/syslimits.h>
|
||||
#define OS_LIB_PREFIX "lib"
|
||||
#define OS_LIB_EXT "dylib"
|
||||
#define OPEN_COMMAND "open"
|
||||
#elif XASH_POSIX
|
||||
#include <unistd.h>
|
||||
#define OS_LIB_PREFIX "lib"
|
||||
#define OS_LIB_EXT "so"
|
||||
#define OPEN_COMMAND "xdg-open"
|
||||
#elif XASH_WIN32
|
||||
|
||||
Reference in New Issue
Block a user