Robert Shearman : oleaut32: Add a typedef for "boolean".

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 7 07:56:03 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: c71af7332401745eeb3f2367ceca1ff964e21781
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c71af7332401745eeb3f2367ceca1ff964e21781

Author: Robert Shearman <rob at codeweavers.com>
Date:   Thu Jul  6 12:54:58 2006 +0100

oleaut32: Add a typedef for "boolean".

Fix up an conflict that this type has with jpeglib.h.

---

 dlls/oleaut32/olepicture.c |    2 ++
 include/rpcndr.h           |    6 ++----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 89b7edb..9130027 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -83,7 +83,9 @@ #define XMD_H
 #define UINT8 JPEG_UINT8
 #define UINT16 JPEG_UINT16
 #undef FAR
+#define boolean jpeg_boolean
 # include <jpeglib.h>
+#undef jpeg_boolean
 #undef UINT16
 #ifndef SONAME_LIBJPEG
 #define SONAME_LIBJPEG "libjpeg.so"
diff --git a/include/rpcndr.h b/include/rpcndr.h
index 42e5b1c..780fa29 100644
--- a/include/rpcndr.h
+++ b/include/rpcndr.h
@@ -92,9 +92,7 @@ #define small char
 typedef unsigned char byte;
 #define hyper __int64
 #define MIDL_uhyper unsigned __int64
-/* 'boolean' tend to conflict, let's call it _wine_boolean */
-typedef unsigned char _wine_boolean;
-/* typedef _wine_boolean boolean; */
+typedef unsigned char boolean;
 
 #define __RPC_CALLEE WINAPI
 #define RPC_VAR_ENTRY __cdecl
@@ -121,7 +119,7 @@ #define cbNDRContext 20
 
 typedef void (__RPC_USER *NDR_RUNDOWN)(void *context);
 typedef void (__RPC_USER *NDR_NOTIFY_ROUTINE)(void);
-typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(_wine_boolean flag);
+typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(boolean flag);
 
 #define DECLSPEC_UUID(x)
 #define MIDL_INTERFACE(x)   struct




More information about the wine-cvs mailing list