#if !defined(_WINDLL)
-#if defined(__TWIN32__) || defined(__WXWINE__) || defined(__WXMICROWIN__)
+#if defined(__WXWINE__)
+ #define HINSTANCE HINSTANCE__*
+
+ extern "C"
+#elif defined(__TWIN32__) || defined(__WXMICROWIN__)
#define HINSTANCE HANDLE
extern "C"