]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fixes for OpenWatcom
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jan 2003 17:19:23 +0000 (17:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jan 2003 17:19:23 +0000 (17:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/ole/oleutils.h
src/msw/ole/dataobj.cpp
src/msw/ole/dropsrc.cpp

index a628ee50a4f1eafb1caa1432fa0ff5a3c7048e9c..ca8e10c87727b21243e5a85a7ee4572acc62e367 100644 (file)
@@ -18,9 +18,8 @@
 
 #include "wx/defs.h"
 
-#if wxUSE_NORLANDER_HEADERS
-    #include <ole2.h>
-#endif
+// get IUnknown, REFIID &c
+#include <ole2.h>
 
 // ============================================================================
 // General purpose functions and macros
index ded99292e676be0a5b956368ad9c9015d1b5edfe..6aa1b3976262a4c91b251eb1f0467d3af3ec79fb 100644 (file)
 
 #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"
index 27dab34ead36a6aac49577b85bb3c1cd60eb7980..fee89b633f6c00a197df4964e13b5446404eb223 100644 (file)
 
 #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"