View Single Post
Re: Why does WINAPI work on linux?
Old
  (#6)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Why does WINAPI work on linux? - 17-04-2004

from metamod/osdep.h:

Code:
// Windows uses "__declspec(dllexport)" to mark functions in the DLL that
// should be visible/callable externally.
//
// It also apparently requires WINAPI for GiveFnptrsToDll().
//
// See doc/notes_windows_coding for more information..

// Attributes to specify an "exported" function, visible from outside the
// DLL.
#undef DLLEXPORT
#ifdef _WIN32
		#define DLLEXPORT	   __declspec(dllexport)
		// WINAPI should be provided in the windows compiler headers.
		// It's usually defined to something like "__stdcall".
#elif defined(linux)
		#define DLLEXPORT	   /* */
		#define WINAPI		  /* */
#endif /* linux */
  
Reply With Quote