https://git.reactos.org/?p=reactos.git;a=commitdiff;h=988c682e8c324d28e4c6b4982e0cbf39bdf4027f

commit 988c682e8c324d28e4c6b4982e0cbf39bdf4027f
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Wed Nov 25 10:41:52 2020 +0100
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Tue Dec 22 12:25:55 2020 +0100

    [LIBXSLT] Fix public variable declarations when using clang-cl
---
 sdk/include/reactos/libs/libxslt/xsltexports.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sdk/include/reactos/libs/libxslt/xsltexports.h 
b/sdk/include/reactos/libs/libxslt/xsltexports.h
index 99b6ac387c1..aac59e1d7a3 100644
--- a/sdk/include/reactos/libs/libxslt/xsltexports.h
+++ b/sdk/include/reactos/libs/libxslt/xsltexports.h
@@ -51,7 +51,11 @@
   #undef XSLTCALL
   #if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
     #define XSLTPUBFUN __declspec(dllexport)
-    #define XSLTPUBVAR __declspec(dllexport)
+    #ifndef __clang__
+        #define XSLTPUBVAR __declspec(dllexport)
+    #else
+        #define XSLTPUBVAR __declspec(dllexport) extern
+    #endif
   #else
     #define XSLTPUBFUN
     #if !defined(LIBXSLT_STATIC)

Reply via email to