2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00

Fix win64 build

This commit is contained in:
mittorn 2016-08-03 22:36:50 +00:00
parent 5bdb97c26c
commit 6c7d89ea76
3 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,9 @@
#define ROLL 2
#ifdef _WIN32
#define HSPRITE HSPRITE_win32
#include <windows.h>
#undef HSPRITE
#else
typedef struct point_s{
int x;

View File

@ -39,7 +39,9 @@
#define NOSERVICE
#define NOMCX
#define NOIME
#define HSPRITE HSPRITE_win32
#include "windows.h"
#undef HSPRITE
#else // _WIN32
#define FALSE 0
#define TRUE (!FALSE)

View File

@ -38,7 +38,7 @@ extern globalvars_t *gpGlobals;
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset)
#if !defined __amd64__ || defined(CLIENT_DLL)
#define MAKE_STRING(str) ((int)str - (int)STRING(0))
#define MAKE_STRING(str) ((int)(size_t)str - (int)(size_t)STRING(0))
#else
#define MAKE_STRING ALLOC_STRING
#endif