]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
return immediately if the XPM is bad instead of spitting out thousands of error messages
[wxWidgets.git] / src / common / msgout.cpp
index 316d014635f01bbb3d1b73e08d4bfdfd794cc69e..3c824301395fc9c26cb7ca96ea805c9a5b8be7cc 100755 (executable)
@@ -17,7 +17,7 @@
 // headers
 // ---------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "msgout.h"
 #endif
 
@@ -48,6 +48,9 @@
 #ifdef __WXMSW__
     #include "wx/msw/private.h"
 #endif
+#ifdef __WXMAC__
+    #include "wx/mac/private.h"
+#endif
 
 // ===========================================================================
 // implementation
@@ -116,7 +119,7 @@ void wxMessageOutputDebug::Printf(const wxChar* format, ...)
     if ( wxIsDebuggerRunning() )
     {
         Str255 pstr;
-        wxString output = str + wxT(";g") ;
+        wxString output = out + wxT(";g") ;
         wxMacStringToPascal(output.c_str(), pstr);
 
         #ifdef __powerc