mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
common: port: do not redefine NOMINMAX and alloca if already defined
This commit is contained in:
@@ -37,14 +37,20 @@ GNU General Public License for more details.
|
|||||||
#elif XASH_WIN32
|
#elif XASH_WIN32
|
||||||
#define HSPRITE WINAPI_HSPRITE
|
#define HSPRITE WINAPI_HSPRITE
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#define NOMINMAX
|
|
||||||
#define VC_EXTRALEAN
|
#define VC_EXTRALEAN
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif // NOMINMAX
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#undef HSPRITE
|
#undef HSPRITE
|
||||||
#define open _open
|
#define open _open
|
||||||
#define read _read
|
#define read _read
|
||||||
#define alloca _alloca
|
|
||||||
|
#ifndef alloca
|
||||||
|
#define alloca _alloca
|
||||||
|
#endif // alloca
|
||||||
|
|
||||||
#define OS_LIB_PREFIX ""
|
#define OS_LIB_PREFIX ""
|
||||||
#define OS_LIB_EXT "dll"
|
#define OS_LIB_EXT "dll"
|
||||||
#define OPEN_COMMAND "open"
|
#define OPEN_COMMAND "open"
|
||||||
|
|||||||
Reference in New Issue
Block a user