]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
support mac on little endian systems
[wxWidgets.git] / src / common / msgout.cpp
index 77c19feb6d42d055964c414edbeeb82242d5227f..f5642aa6c39e9472f237472244d7416dfa95f695 100755 (executable)
@@ -88,6 +88,26 @@ wxMessageOutput* wxMessageOutput::Set(wxMessageOutput* msgout)
     return old;
 }
 
+// ----------------------------------------------------------------------------
+// wxMessageOutputBest
+// ----------------------------------------------------------------------------
+
+void wxMessageOutputBest::Printf(const wxChar* format, ...)
+{
+    va_list args;
+    va_start(args, format);
+    wxString out;
+
+    out.PrintfV(format, args);
+    va_end(args);
+
+#ifdef __WINDOWS__
+    ::MessageBox(NULL, out, _T("wxWidgets"), MB_ICONINFORMATION | MB_OK);
+#else // !__WINDOWS__
+    fprintf(stderr, "%s", (const char*) out.mb_str());
+#endif // __WINDOWS__/!__WINDOWS__
+}
+
 // ----------------------------------------------------------------------------
 // wxMessageOutputStderr
 // ----------------------------------------------------------------------------