X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c6eb3a84be918dcfed2496d014549e13af0f0e9..87f0b1323b7ac77f02133b836c8dfee63b0fd387:/include/wx/osx/private/timer.h?ds=sidebyside diff --git a/include/wx/osx/private/timer.h b/include/wx/osx/private/timer.h index 4532e42f54..cd990764c3 100644 --- a/include/wx/osx/private/timer.h +++ b/include/wx/osx/private/timer.h @@ -1,5 +1,11 @@ -#ifdef __WXMAC_CLASSIC__ -#include "wx/mac/classic/private/timer.h" -#else -#include "wx/mac/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 1 // revert to wxOSX_USE_COCOA_OR_IPHONE in case of problems + #include "wx/osx/core/private/timer.h" +#elif wxOSX_USE_CARBON + #include "wx/osx/carbon/private/timer.h" #endif