include: Include winuser.h from generated oleidl.h header.
authorRob Shearman <robertshearman@gmail.com>
Mon, 29 Dec 2008 12:05:12 +0000 (12:05 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 29 Dec 2008 13:41:00 +0000 (14:41 +0100)
oleidl.h isn't usable without winuser.h being included first due to
using the LPMSG type, so explicitly include it by adding a cpp_quote
statement to oleidl.idl. In the PSDK it is implicitly included as
IDL-generated header includes windows.h, which in turn includes
winuser.h.

dlls/ole32/ole32_oleidl.idl
dlls/oleaut32/oleaut32_ocidl.idl
include/oleidl.idl

index b9315b37a2a294513496ce75c981a562b00a310c..93cf079e1e1d6c3cc1b0ea90cfec9f4de8df85e9 100644 (file)
@@ -16,5 +16,4 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-cpp_quote("#include <winuser.h>")
 #include "oleidl.idl"
index 379df5bbfee860b65167cef2bb467ab28b6dfa09..dcd3ea458da49e264310bd39eae2953739355c32 100644 (file)
@@ -16,5 +16,4 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-cpp_quote("#include <winuser.h>")
 #include "ocidl.idl"
index 5c92cb19d455302bb03068929999efdbf2b35107..74962ffeb0ac159b09ef5e503618fa67194488a4 100644 (file)
@@ -24,6 +24,8 @@ import "objidl.idl";
 
 interface IOleInPlaceActiveObject;
 
+cpp_quote("#include <winuser.h>")
+
 /*****************************************************************************
  * IOleTypes interface
  */