X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef0e92205a01c7d0ca6f381cc690cb5d4fa595c9..040b9528d149c2bb2497d47d9175635c03baffe2:/include/wx/osx/private.h diff --git a/include/wx/osx/private.h b/include/wx/osx/private.h index ce2ed5c6f8..d3a75084d5 100644 --- a/include/wx/osx/private.h +++ b/include/wx/osx/private.h @@ -1,7 +1,18 @@ -#ifdef __WXMAC_CLASSIC__ -#include "wx/osx/classic/private.h" -#elif defined(__WXOSX_IPHONE__) -#include "wx/osx/core/private.h" -#else -#include "wx/osx/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 \ No newline at end of file