]> git.saurik.com Git - wxWidgets.git/commitdiff
osx regrouping
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Jul 2008 20:27:54 +0000 (20:27 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Jul 2008 20:27:54 +0000 (20:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/private/timer.h

index 024f6d88eead063c87601019afa0af0f1131f84d..caa5efd4cbbff59d3cb56916a12c71b7b4be75f1 100644 (file)
@@ -1,5 +1,12 @@
-#ifdef __WXMAC_CLASSIC__
-#include "wx/osx/classic/private/timer.h"
-#else
-#include "wx/osx/carbon/private/timer.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
+
+#if wxOSX_USE_COCOA_OR_IPHONE
+    // this should become the future version also for carbon
+    #include "wx/osx/core/private/timer.h"
+#elif wxOSX_USE_CARBON
+    #include "wx/osx/carbon/private/timer.h"
 #endif