]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/app.cpp
compilation fixes - wxGTK compiles but not links
[wxWidgets.git] / src / os2 / app.cpp
index 7daefe297d7061bb4fc95ad5bdae262b837e15fc..61d3cdc3c689cb1cae4c1a7ebb6b3ead8c89b26b 100644 (file)
@@ -44,6 +44,7 @@
 
 #else
 
+#include <nerrno.h>
 #include <ioctl.h>
 #include <select.h>
 
@@ -786,15 +787,24 @@ bool wxApp::DoMessage()
         }
 #endif // wxUSE_THREADS
 
+        //
         // Process the message
-        if (!ProcessMessage((WXMSG *)&svCurrentMsg))
-        {
-            ::WinDispatchMsg(vHabmain, (PQMSG)&svCurrentMsg);
-        }
+        //
+        DoMessage((WXMSG *)&svCurrentMsg);
     }
     return TRUE;
 } // end of wxApp::DoMessage
 
+void wxApp::DoMessage(
+  WXMSG*                            pMsg
+)
+{
+    if (!ProcessMessage((WXMSG *)&svCurrentMsg))
+    {
+        ::WinDispatchMsg(vHabmain, (PQMSG)&svCurrentMsg);
+    }
+} // end of wxApp::DoMessage
+
 //////////////////////////////////////////////////////////////////////////////
 //
 // Keep trying to process messages until WM_QUIT