![]() |
Why does WINAPI work on linux?
Code:
void WINAPI GiveFnptrsToDll (enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals) Why does this work? DLLMain has #ifndef __linux__ around it... |
Re: Why does WINAPI work on linux?
You'll find this in other bots source too, e.g. joebot and yapb.
I never verified this but I assume it's defined somewhere in the HL SDK and the OS check is done during the definition of WINAPI. |
Re: Why does WINAPI work on linux?
this was in the namefunc.cpp right ?
that file is only linked with the rest on windows, on linux it doesnt appear in the makefile ( if I remember that one right ) |
Re: Why does WINAPI work on linux?
no it's the dll.cpp in podbot..
and it has the metamod functions and DLLMain and other things. Code:
#ifndef __linux__ |
Re: Why does WINAPI work on linux?
ok, nothing like that in the namefunc, right ...
if that's there in the dll.cpp in some bots ( don't have such a bot on my hd atm ) I think that must be some calling convention definition, maybe solved to _cdecl, dunno. maybe you can try to get it using the browse function of your IDE, if that's supported. |
Re: Why does WINAPI work on linux?
from metamod/osdep.h:
Code:
// Windows uses "__declspec(dllexport)" to mark functions in the DLL that |
Re: Why does WINAPI work on linux?
thanks
|
All times are GMT +2. The time now is 19:59. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.