Browse Source

Fix win64 build

wantedhl
mittorn 8 years ago
parent
commit
6c7d89ea76
  1. 2
      cl_dll/in_defs.h
  2. 2
      dlls/extdll.h
  3. 2
      dlls/util.h

2
cl_dll/in_defs.h

@ -17,7 +17,9 @@ @@ -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;

2
dlls/extdll.h

@ -39,7 +39,9 @@ @@ -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)

2
dlls/util.h

@ -38,7 +38,7 @@ extern globalvars_t *gpGlobals; @@ -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

Loading…
Cancel
Save