+#ifndef __WXUNIVERSAL__
+# error "wxMGL cannot be built without wxUniversal"
+#endif
+
+/* wxPalette is always needed */
+#if !wxUSE_PALETTE
+# error "wxMGL requires wxUSE_PALETTE=1"
+#endif
+
+/*
+ wxDisplay is not implemented for OS/2, use stub common version instead.
+ */
+#if wxUSE_DISPLAY
+# undef wxUSE_DISPLAY
+# define wxUSE_DISPLAY 0
+#endif /* wxUSE_DISPLAY */
+