mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-14 08:57:52 +00:00
Fix win64 build
This commit is contained in:
parent
5bdb97c26c
commit
6c7d89ea76
@ -17,7 +17,9 @@
|
|||||||
#define ROLL 2
|
#define ROLL 2
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#define HSPRITE HSPRITE_win32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#undef HSPRITE
|
||||||
#else
|
#else
|
||||||
typedef struct point_s{
|
typedef struct point_s{
|
||||||
int x;
|
int x;
|
||||||
|
@ -39,7 +39,9 @@
|
|||||||
#define NOSERVICE
|
#define NOSERVICE
|
||||||
#define NOMCX
|
#define NOMCX
|
||||||
#define NOIME
|
#define NOIME
|
||||||
|
#define HSPRITE HSPRITE_win32
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
#undef HSPRITE
|
||||||
#else // _WIN32
|
#else // _WIN32
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
|
@ -38,7 +38,7 @@ extern globalvars_t *gpGlobals;
|
|||||||
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset)
|
#define STRING(offset) (const char *)(gpGlobals->pStringBase + (int)offset)
|
||||||
|
|
||||||
#if !defined __amd64__ || defined(CLIENT_DLL)
|
#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
|
#else
|
||||||
#define MAKE_STRING ALLOC_STRING
|
#define MAKE_STRING ALLOC_STRING
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user