From: Vadim Zeitlin Date: Wed, 22 Jan 2003 17:19:23 +0000 (+0000) Subject: compilation fixes for OpenWatcom X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a7b4607f4a4c20352a5ac2c094a6293f05f9dc95 compilation fixes for OpenWatcom git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/ole/oleutils.h b/include/wx/msw/ole/oleutils.h index a628ee50a4..ca8e10c877 100644 --- a/include/wx/msw/ole/oleutils.h +++ b/include/wx/msw/ole/oleutils.h @@ -18,9 +18,8 @@ #include "wx/defs.h" -#if wxUSE_NORLANDER_HEADERS - #include -#endif +// get IUnknown, REFIID &c +#include // ============================================================================ // General purpose functions and macros diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index ded99292e6..6aa1b39762 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -39,16 +39,12 @@ #include "wx/msw/private.h" // includes -#if wxUSE_NORLANDER_HEADERS +// for some compilers, the entire ole2.h must be included, not only oleauto.h +#if wxUSE_NORLANDER_HEADERS || defined(__WATCOMC__) #include #endif -#include - -#ifndef __WIN32__ - #include - #include -#endif +#include #include #include "wx/msw/ole/oleutils.h" diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index 27dab34ead..fee89b633f 100644 --- a/src/msw/ole/dropsrc.cpp +++ b/src/msw/ole/dropsrc.cpp @@ -40,15 +40,11 @@ #include -#if wxUSE_NORLANDER_HEADERS +// for some compilers, the entire ole2.h must be included, not only oleauto.h +#if wxUSE_NORLANDER_HEADERS || defined(__WATCOMC__) #include #endif -#ifndef __WIN32__ - #include - #include -#endif - #include #include "wx/msw/ole/oleutils.h"