]> git.saurik.com Git - wxWidgets.git/commitdiff
we don't need to include wx/mac/private.h, at least under OS X
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Jun 2003 00:35:07 +0000 (00:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Jun 2003 00:35:07 +0000 (00:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index 40e41471148cbdd4a00783ce216dc33575d2ac51..271e3cd7e584cba012dd631213d2ff8f01114893 100644 (file)
 #endif
 
 #if defined(__WXMAC__)
-  #include  "wx/mac/private.h"  // includes mac headers
-#endif
+    // VZ: MacTypes.h is enough under Mac OS X (where I could test it) but
+    //     I don't know which headers are needed under earlier systems so
+    //     include everything when in doubt
+    #ifdef __DARWIN__
+        #include  "MacTypes.h"
+    #else
+        #include  "wx/mac/private.h"  // includes mac headers
+    #endif
+#endif // __WXMAC__
 
 // ----------------------------------------------------------------------------
 // private functions prototypes