git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18864
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/defs.h"
-#if wxUSE_NORLANDER_HEADERS
- #include <ole2.h>
-#endif
+// get IUnknown, REFIID &c
+#include <ole2.h>
// ============================================================================
// General purpose functions and macros
#include "wx/msw/private.h" // includes <windows.h>
-#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 <ole2.h>
#endif
-#include <oleauto.h>
-
-#ifndef __WIN32__
- #include <ole2.h>
- #include <olestd.h>
-#endif
+#include <oleauto.h>
#include <shlobj.h>
#include "wx/msw/ole/oleutils.h"
#include <windows.h>
-#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 <ole2.h>
#endif
-#ifndef __WIN32__
- #include <ole2.h>
- #include <olestd.h>
-#endif
-
#include <oleauto.h>
#include "wx/msw/ole/oleutils.h"