]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/setup.h
a warning in the release build suppressed
[wxWidgets.git] / include / wx / setup.h
index 2f0e6abc4616d91afcd374ee810d8bb7c4bc05de..9eef8da3ef7aa7ab05b99bb58180f94f9f32cdf8 100644 (file)
@@ -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