]> git.saurik.com Git - wxWidgets.git/commitdiff
wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source...
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 21 Jul 2005 17:08:28 +0000 (17:08 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 21 Jul 2005 17:08:28 +0000 (17:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/chkconf.h
include/wx/debug.h
include/wx/defs.h
include/wx/dynlib.h
include/wx/filefn.h
include/wx/platform.h
include/wx/popupwin.h

index 8ae71dcf156296f9ae14a5f3c3ae5642a815228a..e9760937ac964bf65f382ad3da699e1b4006a056 100644 (file)
 
 #   if !wxUSE_DOC_VIEW_ARCHITECTURE
 #        ifdef wxABORT_ON_CONFIG_ERROR
-#            error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
+#            error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
 #        else
 #            undef wxUSE_DOC_VIEW_ARCHITECTURE
 #            define wxUSE_DOC_VIEW_ARCHITECTURE 1
 #if !wxUSE_FILEDLG
 #   if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
 #       ifdef wxABORT_ON_CONFIG_ERROR
-#           error "wxFileDialog must be compiled as well"
+#           error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
 #       else
 #           undef wxUSE_FILEDLG
 #           define wxUSE_FILEDLG 1
 #endif /* wxUSE_SOCKETS */
 
 #endif /* wxUSE_GUI */
-
index c944baba82ff81b6a1a450af65b2c97406898d36..c2fc985ec281550dc06cee5954ffb6e280acfb6b 100644 (file)
 
  It may be used both within a function and in the global scope.
 */
-#ifdef __WATCOMC__
+#if defined(__WATCOMC__) && defined(__cplusplus)
     /* avoid "unused symbol" warning */
     #define wxCOMPILE_TIME_ASSERT(expr, msg) \
         class wxMAKE_UNIQUE_ASSERT_NAME { \
 #endif /* __cplusplus */
 
 #endif  /*  _WX_DEBUG_H_ */
-
index e4f6b3d8652ab60274a540524a326084e0bb4473..6da83c521e1b1432215a7c3ffee54699a3d64d57 100644 (file)
@@ -902,7 +902,7 @@ inline void *wxUIntToPtr(wxUIntPtr p)
     #define wxLongLong_t __int64
     #define wxLongLongSuffix i64
     #define wxLongLongFmtSpec _T("L")
-#elif (defined(__WATCOMC__) && (defined(__WIN32__) || defined(__DOS__)))
+#elif (defined(__WATCOMC__) && (defined(__WIN32__) || defined(__DOS__) || defined(__OS2__)))
       #define wxLongLong_t __int64
       #define wxLongLongSuffix i64
       #define wxLongLongFmtSpec _T("L")
index a5dd3dbe5293236f557aaec97f323988b6db7cbf..a5273869fde5a90cfe6bcacfb751f13859c238d5 100644 (file)
 #include "wx/string.h"
 #include "wx/dynarray.h"
 
-// FIXME: can this go in private.h or something too??
 #if defined(__WXPM__) || defined(__EMX__)
-#define INCL_DOS
-#include <os2.h>
+#include "wx/os2/private.h"
 #endif
 
 #ifdef __WXMSW__
index f2e52808f6bf441b8be5b9be0f546cd10404a0b6..84e5c44013cd9ab308c78a0dcbf4bdddaaff24b8 100644 (file)
@@ -49,6 +49,9 @@
 // __OS2__ and __UNIX__ are defined.
     #include <process.h>
     #include "wx/os2/private.h"
+    #ifdef __WATCOMC__
+        #include <direct.h>
+    #endif
     #include <io.h>
     #ifdef __EMX__
         #include <unistd.h>
index d3f6c0c53ee5dffc52b1f672a4faff4f2f734058..2e0320a1445ad4ae92f29d5faa4491dc42e223c9 100644 (file)
     ( defined( __CYGWIN__ ) && defined( __WINDOWS__ ) ) || \
       (defined(__WATCOMC__) && __WATCOMC__ >= 1200) ) && \
     !defined(__DOS__) && \
+    !defined(__WXOS2__) && \
     !defined(__WXMOTIF__) && \
     !defined(__WXGTK__) && \
     !defined(__WXX11__) && \
 #endif
 
 #endif /* _WX_PLATFORM_H_ */
-
index a347db9dc63169402c965e06939f70e6750b5def..e971b49a00c134684f46d55375c843312c76d03d 100644 (file)
@@ -56,17 +56,17 @@ public:
 
 
 // include the real class declaration
-#ifdef __WXMSW__
+#if defined(__WXMSW__)
     #include "wx/msw/popupwin.h"
-#elif __WXPM__
+#elif defined(__WXPM__)
     #include "wx/os2/popupwin.h"
-#elif __WXGTK__
+#elif defined(__WXGTK__)
     #include "wx/gtk/popupwin.h"
-#elif __WXX11__
+#elif defined(__WXX11__)
     #include "wx/x11/popupwin.h"
-#elif __WXMOTIF__
+#elif defined(__WXMOTIF__)
     #include "wx/motif/popupwin.h"
-#elif __WXMGL__
+#elif defined(__WXMGL__)
     #include "wx/mgl/popupwin.h"
 #else
     #error "wxPopupWindow is not supported under this platform."
@@ -131,7 +131,7 @@ protected:
     // check if the mouse needs captured or released
     void OnIdle(wxIdleEvent& event);
 #endif
-    
+
     // the child of this popup if any
     wxWindow *m_child;
 
@@ -190,4 +190,3 @@ protected:
 #endif // wxUSE_POPUPWIN
 
 #endif // _WX_POPUPWIN_H_BASE_
-