include: Only include winuser.h in oleidl.idl as a replacement for windows.h when compiling the Wine source.

Francois Gouget fgouget at
Wed Dec 28 03:39:47 CST 2011


As far as the code goes it does not actually make much of a difference 
since windows.h includes winuser.h already. But the __WINESRC__ check 
makes it clear(er) why that include is there.

 include/oleidl.idl |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/oleidl.idl b/include/oleidl.idl
index 74962ff..efba6c1 100644
--- a/include/oleidl.idl
+++ b/include/oleidl.idl
@@ -24,7 +24,9 @@ import "objidl.idl";
 interface IOleInPlaceActiveObject;
-cpp_quote("#include <winuser.h>")
+cpp_quote("#ifdef __WINESRC__")
+cpp_quote("# include <winuser.h>")
  * IOleTypes interface

More information about the wine-patches mailing list