]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynlib.h
applied wxDirSelector() patch and regenerated the makefiles to include the new src...
[wxWidgets.git] / include / wx / dynlib.h
index 83adf1d77b963fbf80b3a998f29f5695edbb1c4e..c9eb6d36af9e400a52913bb86d8e6aec2fd0a215 100644 (file)
@@ -48,7 +48,7 @@
 #elif defined(__WINDOWS__)
 #   include <windows.h>         // needed to get HMODULE
     typedef HMODULE wxDllType;
-#elif defined(__APPLE__) && defined(__UNIX__)
+#elif defined(__DARWIN__)
     typedef void *wxDllType;
 #elif defined(__WXMAC__)
     typedef CFragConnectionID wxDllType;
@@ -229,8 +229,8 @@ extern wxLibraries wxTheLibraries;
 // ----------------------------------------------------------------------------
 
 #define WXDLL_ENTRY_FUNCTION() \
-extern "C" wxClassInfo *wxGetClassFirst(); \
-wxClassInfo *wxGetClassFirst() { \
+extern "C" WXEXPORT wxClassInfo *wxGetClassFirst(); \
+const wxClassInfo *wxGetClassFirst() { \
   return wxClassInfo::GetFirst(); \
 }