-typedef enum { dh_stdcall, dh_ccall } DHCALLCONV;
-typedef int HMODULE;
-typedef char* LPCSTR;
-
-extern HMODULE LoadLibrary ( LPCSTR modname );
-extern void* GetProcAddr ( DHCALLCONV cconv,
- HMODULE hModule,
- LPCSTR lpProcName );
+typedef enum { dh_stdcall, dh_ccall } DH_CALLCONV;
+typedef int DH_MODULE;
+typedef char* DH_LPCSTR;
+
+extern __attribute__((__stdcall__))
+ DH_MODULE DH_LoadLibrary ( DH_LPCSTR modname );
+extern __attribute__((__stdcall__))
+ void* DH_GetProcAddress ( DH_CALLCONV cconv,
+ DH_MODULE hModule,
+ DH_LPCSTR lpProcName );