mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
game_launch: fix Windows build (as suggested by @SNMetamorph)
This commit is contained in:
@@ -20,14 +20,15 @@ GNU General Public License for more details.
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if XASH_POSIX
|
||||
#define XASHLIB "libxash." OS_LIB_EXT
|
||||
#include <unistd.h> // execve
|
||||
#elif XASH_WIN32
|
||||
#define XASHLIB "xash.dll"
|
||||
#define dlerror() GetStringLastError()
|
||||
#include <shellapi.h> // CommandLineToArgvW
|
||||
#include <process.h> // _execve
|
||||
#else
|
||||
#error // port me!
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user