common: do not override neither _cdecl or _stdcall

This commit is contained in:
Alibek Omarov
2026-01-24 07:09:36 +05:00
parent 7a8837bf2a
commit 20a20c72d4
3 changed files with 9 additions and 6 deletions

View File

@@ -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

View File

@@ -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 )

View File

@@ -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[] =
{