From 78e5340f6c26e3fee7a26f57acdd1ff8af6faa11 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 6 Sep 2012 12:28:53 +0000 Subject: [PATCH] [PSDK] * Use __attribute__((weak)) instead of __declspec(selectany) until http://llvm.org/bugs/show_bug.cgi?id=13778 is fixed. svn path=/trunk/; revision=57244 --- reactos/include/psdk/guiddef.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/include/psdk/guiddef.h b/reactos/include/psdk/guiddef.h index be843cc085f..5b7f7267872 100644 --- a/reactos/include/psdk/guiddef.h +++ b/reactos/include/psdk/guiddef.h @@ -32,8 +32,13 @@ typedef struct _GUID #endif #ifndef DECLSPEC_SELECTANY +#ifdef __clang__ +/* FIXME: http://llvm.org/bugs/show_bug.cgi?id=13778 */ +#define DECLSPEC_SELECTANY __attribute__((weak)) +#else #define DECLSPEC_SELECTANY __declspec(selectany) #endif +#endif #ifndef EXTERN_C #ifdef __cplusplus