diff --git a/src/xpdev/xp_dl.h b/src/xpdev/xp_dl.h
index 4469cbbc3ef109852a15930b31e5970740dd88cd..6fe84df3d712b32c2725bbc065d8cdf5c1523c10 100644
--- a/src/xpdev/xp_dl.h
+++ b/src/xpdev/xp_dl.h
@@ -14,7 +14,7 @@
 #elif defined(_WIN32)
 	#include <Windows.h>
 
-	typedef HMODULE WINAPI dll_handle;
+	typedef HMODULE dll_handle;
 	DLLEXPORT dll_handle DLLCALL xp_dlopen(const char **name, int mode, int major);
 	#define xp_dlsym(handle, name)				((void *)GetProcAddress(handle, #name))
 	#define xp_dlclose(handle)					(FreeLibrary(handle)?0:-1)