X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6444e22daa9f3ff357ea57d3f18fb92fec24d003..4f356748c628f4c9e2a1e062ef76789ec221cb25:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index 22a407360f..1eab4c5e11 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -36,6 +36,10 @@ #endif // Unix/!Unix #endif +#if !wxUSE_GUI && !defined(__WXBASE__) + #define __WXBASE__ +#endif + // include the feature test macros #include "wx/features.h" @@ -78,16 +82,6 @@ #include "wx/version.h" -// possibility to build non GUI apps is new, so don't burden ourselves with -// compatibility code -#if !wxUSE_GUI -#undef WXWIN_COMPATIBILITY_2 -#undef WXWIN_COMPATIBILITY_2_2 - -#define WXWIN_COMPATIBILITY_2 0 -#define WXWIN_COMPATIBILITY_2_2 0 -#endif // !GUI - // ============================================================================ // non portable C++ features // ============================================================================ @@ -1947,6 +1941,7 @@ typedef struct objc_object *WX_##klass DECLARE_WXCOCOA_OBJC_CLASS(NSApplication); DECLARE_WXCOCOA_OBJC_CLASS(NSBox); DECLARE_WXCOCOA_OBJC_CLASS(NSButton); +DECLARE_WXCOCOA_OBJC_CLASS(NSColor); DECLARE_WXCOCOA_OBJC_CLASS(NSControl); DECLARE_WXCOCOA_OBJC_CLASS(NSEvent); DECLARE_WXCOCOA_OBJC_CLASS(NSLayoutManager);