- wxASSERT_MSG( !(style & wxCANCEL_DEFAULT) || !(style & wxNO_DEFAULT),
- "only one default button can be specified" );
+ if ((style & wxCANCEL_DEFAULT) != 0 && (style & wxNO_DEFAULT) != 0)
+ wxFAIL_MSG("only one default button can be specified");
+#endif