]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
remove -lfoo.dll hack, it appears to be unnecessary after all.. don't ask.
[wxWidgets.git] / src / common / utilscmn.cpp
index 2b812d81bfe2dd010e4f3798584a9e60c7bfc583..724f54de2a05e8435fcf737fba6c4aa6a7587a12 100644 (file)
@@ -36,6 +36,7 @@
     #include "wx/log.h"
 
     #if wxUSE_GUI
+        #include "wx/app.h"
         #include "wx/window.h"
         #include "wx/frame.h"
         #include "wx/menu.h"
@@ -1312,4 +1313,25 @@ long wxExecute(const wxString& command,
     return wxDoExecuteWithCapture(command, output, &error);
 }
 
+// ----------------------------------------------------------------------------
+// wxApp::Yield() wrappers for backwards compatibility
+// ----------------------------------------------------------------------------
+
+bool wxYield()
+{
+#if wxUSE_GUI
+    return wxTheApp && wxTheApp->Yield();
+#else
+    return FALSE;
+#endif
+}
+
+bool wxYieldIfNeeded()
+{
+#if wxUSE_GUI
+    return wxTheApp && wxTheApp->Yield(TRUE);
+#else
+    return FALSE;
+#endif
+}