mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
common: do not override neither _cdecl or _stdcall
This commit is contained in:
@@ -52,11 +52,6 @@ GNU General Public License for more details.
|
||||
#define OS_LIB_EXT "prx"
|
||||
#endif
|
||||
|
||||
#if !defined( _MSC_VER )
|
||||
#define __cdecl
|
||||
#define __stdcall
|
||||
#endif
|
||||
|
||||
#if !XASH_WIN32
|
||||
typedef void *HINSTANCE;
|
||||
typedef struct tagPOINT { int x, y; } POINT; // one nasty function in cdll_int.h needs it
|
||||
|
||||
@@ -32,8 +32,12 @@ static byte fatphs[(MAX_MAP_LEAFS+7)/8];
|
||||
static byte clientpvs[(MAX_MAP_LEAFS+7)/8]; // for find client in PVS
|
||||
|
||||
// exports
|
||||
#if XASH_WIN32
|
||||
typedef void (__cdecl *LINK_ENTITY_FUNC)( entvars_t *pev );
|
||||
typedef void (__stdcall *GIVEFNPTRSTODLL)( enginefuncs_t* engfuncs, globalvars_t *pGlobals );
|
||||
#else
|
||||
typedef void (*LINK_ENTITY_FUNC)( entvars_t *pev );
|
||||
#endif
|
||||
typedef void (DLLEXPORT *GIVEFNPTRSTODLL)( enginefuncs_t* engfuncs, globalvars_t *pGlobals );
|
||||
|
||||
#ifndef NDEBUG
|
||||
qboolean SV_CheckEdict( const edict_t *e, const char *file, const int line )
|
||||
|
||||
@@ -82,7 +82,11 @@ typedef struct
|
||||
float time;
|
||||
} SAVE_LIGHTSTYLE;
|
||||
|
||||
#if XASH_WIN32
|
||||
static void (__cdecl *pfnSaveGameComment)( char *buffer, int max_length ) = NULL;
|
||||
#else // XASH_WIN32
|
||||
static void (*pfnSaveGameComment)( char *buffer, int max_length ) = NULL;
|
||||
#endif // XASH_WIN32
|
||||
|
||||
static TYPEDESCRIPTION gGameHeader[] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user