]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fixes for EMX. Mostly adding includes and declarations that
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 25 Aug 2002 17:58:44 +0000 (17:58 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 25 Aug 2002 17:58:44 +0000 (17:58 +0000)
        are missing when not using pre-compiled headers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/app.cpp
src/os2/dc.cpp
src/os2/pen.cpp
src/os2/timer.cpp
src/os2/toolbar.cpp
src/os2/toplevel.cpp
src/os2/window.cpp

index f6b538d15aa7b500ce0ab27749bdbd85b7afc4af..31c1d4962931121cb8c0e58e79eb96da499a2d9e 100644 (file)
@@ -9,6 +9,10 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#ifdef __GNUG__
+    #pragma implementation "app.h"
+#endif
+
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
index 28ac299e82489a19e9a26e4b127b942a892a262b..4a5cef4e16b2c65678b45c1097ce112b31732895 100644 (file)
@@ -24,6 +24,9 @@
     #include "wx/icon.h"
     #include "wx/msgdlg.h"
     #include "wx/module.h"
+#if wxUSE_STATUSBAR
+    #include "wx/statusbr.h"
+#endif
 #endif
 
 #include "wx/dcprint.h"
index b26c80e4aba225fc1483efad7c1ed4b8a6eeb953..975a8f96f6e90db6e52f37c18a17ab222ea8d0d7 100644 (file)
@@ -108,6 +108,10 @@ wxPen::wxPen(
         wxThePenList->AddPen(this);
 } // end of wxPen::wxPen
 
+int wx2os2PenStyle(
+  int                               nWxStyle
+);
+
 bool wxPen::RealizeResource()
 {
     BOOL                            bOk;
index bb897e1f78b3c53b8595699047657e2e629d41f0..f102ace512ef8a7204c1a899deb05958f20751ae 100644 (file)
@@ -9,6 +9,10 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#ifdef __GNUG__
+    #pragma implementation "timer.h"
+#endif
+
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -51,8 +55,8 @@ void wxTimer::Init()
 
 wxTimer::~wxTimer()
 {
-    Stop();
     wxTimer::Stop();
+
     wxTimerList.DeleteObject(this);
 }
 
@@ -164,8 +168,8 @@ ULONG wxTimerProc(
     wxNode*                         pNode = wxTimerList.Find((ULONG)nIdTimer);
 
     wxCHECK_MSG(pNode, 0, wxT("bogus timer id in wxTimerProc") );
-
-    wxProcessTimer(*(wxTimer *)pNode->Data());
+    if (pNode)
+      wxProcessTimer(*(wxTimer *)pNode->Data());
     return 0;
 }
 
index 7975660d483d50b2e6c5ce56db86121dbc9270a1..e432c1b1c615e0ae60b40d17c391795dd22659a7 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef WX_PRECOMP
     #include "wx/settings.h"
     #include "wx/window.h"
+    #include "wx/frame.h"
+    #include "wx/app.h"
     #include "wx/dcclient.h"
     #include "wx/dcmemory.h"
 #endif
index 834fe8af405269c6bb856b2a3d6f5b90d18988b0..badfc618355142823be9e0c2b028482fb9accefa 100644 (file)
@@ -36,6 +36,7 @@
     #include "wx/intl.h"
     #include "wx/frame.h"
     #include "wx/control.h"
+    #include "wx/containr.h"        // wxSetFocusToChild()
 #endif //WX_PRECOMP
 
 #include "wx/os2/private.h"
index 87e89399f71b6f0e142bb17f75546cebd5085c5d..85f6f74323cd8543018f932db2f5e0a418ffd86a 100644 (file)
@@ -35,6 +35,7 @@
     #include "wx/scrolwin.h"
     #include "wx/radiobox.h"
     #include "wx/slider.h"
+    #include "wx/statbox.h"
     #include "wx/statusbr.h"
     #include "wx/toolbar.h"
     #include "wx/settings.h"
@@ -2932,7 +2933,7 @@ MRESULT wxWindowOS2::OS2WindowProc(
             if ( bProcessed )
             {
                 // we never set focus from here
-                mResult = FALSE;
+                mResult = (MRESULT)FALSE;
             }
             break;