From a569c16c2f72984f59d8cc0289fd5985c627a342 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Sat, 4 Jun 2016 17:17:44 +0500 Subject: [PATCH] Fix strange definition. --- dlls/h_export.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/dlls/h_export.cpp b/dlls/h_export.cpp index bdbad2c6..a2e533c5 100644 --- a/dlls/h_export.cpp +++ b/dlls/h_export.cpp @@ -46,27 +46,10 @@ BOOL WINAPI DllMain( } return TRUE; } +#endif^M -extern "C" void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) __attribute__((__stdcall__)) ; - - -extern "C" void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) +extern "C" void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) { memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t)); gpGlobals = pGlobals; } - - -#else - -extern "C" { - -void GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) -{ - memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t)); - gpGlobals = pGlobals; -} - -} - -#endif