]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/app.cpp
wxUniversal compilation fix. The fix is ok because this ash
[wxWidgets.git] / src / motif / app.cpp
index a723826ec3a5920c927b0fa0ad506cb28072ec18..d5ec44f979eab211a137283068ee260667f981de 100644 (file)
@@ -13,6 +13,9 @@
     #pragma implementation "app.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #ifdef __VMS
 #define XtParent XTPARENT
 #define XtDisplay XTDISPLAY
@@ -304,7 +307,7 @@ void wxApp::SetTopLevelWidget(WXDisplay* display, WXWidget widget)
 
 bool wxApp::Yield(bool onlyIfNeeded)
 {
-    bool s_inYield = FALSE;
+    static bool s_inYield = FALSE;
 
     if ( s_inYield )
     {