]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/private.h
Use wxMenuBar::Attach/Detach() instead of SetInvokingWindow() in wxGTK1.
[wxWidgets.git] / include / wx / osx / private.h
index 75cf558a221f9a048b4647010b68ce9c6d0b06d3..a309aea5ac584cc912076e73da395779e9692a60 100644 (file)
@@ -1,7 +1,18 @@
-#ifdef __WXMAC_CLASSIC__
-#include "wx/mac/classic/private.h"
-#elif defined(__WXOSX_IPHONE__)
-#include "wx/mac/corefoundation/private.h"
-#else
-#include "wx/mac/carbon/private.h"
+/* common warning snippet for all osx direct includes */
+
+#ifndef wxOSX_USE_CARBON
+#error "this files should only be included after platform.h was included"
+#endif
+
+#ifndef _WX_PRIVATE_OSX_H_
+#define _WX_PRIVATE_OSX_H_
+
+#if wxOSX_USE_IPHONE
+    #include "wx/osx/iphone/private.h"
+#elif wxOSX_USE_CARBON
+    #include "wx/osx/carbon/private.h"
+#elif wxOSX_USE_COCOA
+    #include "wx/osx/cocoa/private.h"
+#endif
+
 #endif