|
|
@ -19,9 +19,6 @@ GNU General Public License for more details. |
|
|
|
|
|
|
|
|
|
|
|
#include "build.h" |
|
|
|
#include "build.h" |
|
|
|
|
|
|
|
|
|
|
|
#define PATH_SEPARATOR_NIX '/' |
|
|
|
|
|
|
|
#define PATH_SEPARATOR_WIN '\\' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !XASH_WIN32 |
|
|
|
#if !XASH_WIN32 |
|
|
|
#if XASH_APPLE |
|
|
|
#if XASH_APPLE |
|
|
|
#include <sys/syslimits.h> |
|
|
|
#include <sys/syslimits.h> |
|
|
@ -43,15 +40,10 @@ GNU General Public License for more details. |
|
|
|
#if XASH_POSIX |
|
|
|
#if XASH_POSIX |
|
|
|
#include <unistd.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <dlfcn.h> |
|
|
|
#include <dlfcn.h> |
|
|
|
|
|
|
|
|
|
|
|
#define PATH_SEPARATOR PATH_SEPARATOR_NIX |
|
|
|
|
|
|
|
#define HAVE_DUP |
|
|
|
#define HAVE_DUP |
|
|
|
|
|
|
|
|
|
|
|
#define O_BINARY 0 |
|
|
|
#define O_BINARY 0 |
|
|
|
#define O_TEXT 0 |
|
|
|
#define O_TEXT 0 |
|
|
|
#define _mkdir( x ) mkdir( x, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ) |
|
|
|
#define _mkdir( x ) mkdir( x, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ) |
|
|
|
#elif XASH_DOS4GW |
|
|
|
|
|
|
|
#define PATH_SEPARATOR PATH_SEPARATOR_WIN |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
typedef void* HANDLE; |
|
|
|
typedef void* HANDLE; |
|
|
@ -62,7 +54,6 @@ GNU General Public License for more details. |
|
|
|
int x, y; |
|
|
|
int x, y; |
|
|
|
} POINT; |
|
|
|
} POINT; |
|
|
|
#else // WIN32
|
|
|
|
#else // WIN32
|
|
|
|
#define PATH_SEPARATOR PATH_SEPARATOR_WIN |
|
|
|
|
|
|
|
#ifdef __MINGW32__ |
|
|
|
#ifdef __MINGW32__ |
|
|
|
#define _inline static inline |
|
|
|
#define _inline static inline |
|
|
|
#define FORCEINLINE inline __attribute__((always_inline)) |
|
|
|
#define FORCEINLINE inline __attribute__((always_inline)) |
|
|
@ -90,12 +81,6 @@ GNU General Public License for more details. |
|
|
|
#define XASH_LOW_MEMORY 0 |
|
|
|
#define XASH_LOW_MEMORY 0 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if PATH_SEPARATOR == PATH_SEPARATOR_WIN |
|
|
|
|
|
|
|
#define PATH_SEPARATOR_STR "\\" |
|
|
|
|
|
|
|
#else // PATH_SEPARATOR == PATH_SEPARATOR_NIX
|
|
|
|
|
|
|
|
#define PATH_SEPARATOR_STR "/" |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
#include <limits.h> |
|
|
|
#include <limits.h> |
|
|
|