Jacek Caban : rpcndr.h: Added EXTERN_GUID define.

Alexandre Julliard julliard at winehq.org
Mon Aug 19 14:33:00 CDT 2013


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Aug 19 16:47:36 2013 +0200

rpcndr.h: Added EXTERN_GUID define.

---

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

diff --git a/include/rpcndr.h b/include/rpcndr.h
index 514f1ce..bc895a5 100644
--- a/include/rpcndr.h
+++ b/include/rpcndr.h
@@ -37,6 +37,18 @@ extern "C" {
 # define CONST_VTBL
 #endif
 
+#ifdef __cplusplus
+#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
+        EXTERN_C const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
+        EXTERN_C const GUID DECLSPEC_SELECTANY name = \
+	{ l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
+#else
+#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
+        const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
+        const GUID DECLSPEC_SELECTANY name = \
+	{ l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
+#endif
+
 /* stupid #if can't handle casts... this __stupidity
    is just a workaround for that limitation */
 




More information about the wine-cvs mailing list