Maarten Lankhorst : include: Fix IsEqualPropertyKey definition.

Alexandre Julliard julliard at winehq.org
Mon Mar 1 09:27:35 CST 2010


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri Jan 29 21:51:41 2010 +0100

include: Fix IsEqualPropertyKey definition.

---

 include/propkeydef.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/propkeydef.h b/include/propkeydef.h
index 2a45984..b3a2559 100644
--- a/include/propkeydef.h
+++ b/include/propkeydef.h
@@ -48,7 +48,11 @@
 #endif
 
 #ifndef IsEqualPropertyKey
+#ifdef __cplusplus
 #define IsEqualPropertyKey(a,b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid,(b).fmtid))
+#else
+#define IsEqualPropertyKey(a,b) (((a).pid == (b).pid) && IsEqualIID(&(a).fmtid,&(b).fmtid))
+#endif
 #endif
 
 #ifndef _PROPERTYKEY_EQUALITY_OPERATORS_




More information about the wine-cvs mailing list