mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
game_launch: fix Windows build (as suggested by @SNMetamorph)
This commit is contained in:
parent
a717b7fc49
commit
f467d0c807
@ -25,7 +25,11 @@ GNU General Public License for more details.
|
|||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <unistd.h>
|
#if XASH_WIN32
|
||||||
|
#include <process.h> // _execve
|
||||||
|
#else
|
||||||
|
#include <unistd.h> // execve
|
||||||
|
#endif
|
||||||
|
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
static char szGameDir[128]; // safe place to keep gamedir
|
static char szGameDir[128]; // safe place to keep gamedir
|
||||||
|
@ -20,14 +20,15 @@ GNU General Public License for more details.
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#if XASH_POSIX
|
#if XASH_POSIX
|
||||||
#define XASHLIB "libxash." OS_LIB_EXT
|
#define XASHLIB "libxash." OS_LIB_EXT
|
||||||
|
#include <unistd.h> // execve
|
||||||
#elif XASH_WIN32
|
#elif XASH_WIN32
|
||||||
#define XASHLIB "xash.dll"
|
#define XASHLIB "xash.dll"
|
||||||
#define dlerror() GetStringLastError()
|
#define dlerror() GetStringLastError()
|
||||||
#include <shellapi.h> // CommandLineToArgvW
|
#include <shellapi.h> // CommandLineToArgvW
|
||||||
|
#include <process.h> // _execve
|
||||||
#else
|
#else
|
||||||
#error // port me!
|
#error // port me!
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user