// where should i put this? we need to make sure of this as it breaks
// the <iostream> code.
-#if !wxUSE_IOSTREAMH && WXDEBUG
-#undef WXDEBUG
+#if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
+#undef __WXDEBUG__
#endif
// Callback function type definition