View Single Post
Re: Why does WINAPI work on linux?
Old
  (#4)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Why does WINAPI work on linux? - 17-04-2004

no it's the dll.cpp in podbot..
and it has the metamod functions and DLLMain and other things.
Code:
#ifndef __linux__
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
   // Required DLL entry point
   return (TRUE);
}
#endif

void WINAPI GiveFnptrsToDll (enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals)
{
   // get the engine functions from the engine...

   memcpy (&g_engfuncs, pengfuncsFromEngine, sizeof (enginefuncs_t));
   gpGlobals = pGlobals;
}
they're right next to each other but one is compiled in linux and one isn't. Yet podbot still compile on linux without any problems...
  
Reply With Quote