X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a3ea4ead89a97b4dcc6a1fdc8c48119bdaabc23..11e3c6ef36393fb5863ea2f9601d8facd73acb12:/include/wx/osx/private.h diff --git a/include/wx/osx/private.h b/include/wx/osx/private.h index 89cc04313e..5b33475f99 100644 --- a/include/wx/osx/private.h +++ b/include/wx/osx/private.h @@ -1,8 +1,7 @@ -/* common warning snippet for all osx direct includes */ +#ifndef _WX_PRIVATE_OSX_H_ +#define _WX_PRIVATE_OSX_H_ -#ifndef wxOSX_USE_CARBON -#error "this files should only be included after platform.h was included -#endif +#include "wx/osx/core/private.h" #if wxOSX_USE_IPHONE #include "wx/osx/iphone/private.h" @@ -10,4 +9,8 @@ #include "wx/osx/carbon/private.h" #elif wxOSX_USE_COCOA #include "wx/osx/cocoa/private.h" +#elif wxUSE_GUI + #error "Must include wx/defs.h first" +#endif + #endif