Fixed GiveFnPtrsToDll problems on linux
This commit is contained in:
@ -3004,7 +3004,11 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason) {
|
||||
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
C_DLLEXPORT void GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) {
|
||||
#else
|
||||
void WINAPI GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) {
|
||||
#endif
|
||||
|
||||
memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t));
|
||||
gpGlobals = pGlobals;
|
||||
@ -3198,4 +3202,4 @@ AMX_NATIVE_INFO Engine_Natives[] = {
|
||||
|
||||
{ NULL, NULL }
|
||||
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user