X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..3bbb630a217d8212c63ac16d5338f692b70ab392:/include/wx/setup.h diff --git a/include/wx/setup.h b/include/wx/setup.h index 2f0e6abc46..9eef8da3ef 100644 --- a/include/wx/setup.h +++ b/include/wx/setup.h @@ -2,11 +2,25 @@ #ifndef __SETUPH_BASE__ #define __SETUPH_BASE__ -#if defined(__WINDOWS__) +// compatibility code, to be removed asap: + +#if ! defined(__WXMSW__) && ! defined(__WXGTK__) && ! defined(__WXMOTIF__) +# if defined(__WINDOWS__) +# define __WXMSW__ +# elif defined(__GTK__) +# define __WXGTK__ +# elif defined(__MOTIF__) +# define __WXMOTIF__ +# else +# error No __WXxxx__ define set! Please define __WXGTK__,__WXMSW__ or __WXMOTIF__. +# endif +#endif + +#if defined(__WXMSW__) #include "wx/msw/setup.h" -#elif defined(__MOTIF__) +#elif defined(__WXMOTIF__) #include "wx/xt/setup.h" -#elif defined(__GTK__) +#elif defined(__WXGTK__) #include "wx/gtk/setup.h" #endif