Fixed GiveFnPtrsToDll problems on linux

This commit is contained in:
Pavol Marko
2004-03-07 19:29:20 +00:00
parent 745e41ce3b
commit df8f02fe66
3 changed files with 9 additions and 3 deletions

View File

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