From 87aff644a4d5dbff48fd116ab8a2316afae3d4fd Mon Sep 17 00:00:00 2001 From: kinichiro Date: Fri, 29 Apr 2022 22:07:53 +0900 Subject: Stop disabling __attribute__ on Windows with Clang On Windows with targeting the MSVC ABI, Clang will define _MSC_VER, and does not treat __attribute__ as a macro. Clang's builtin headers (e.g. immintrin.h) use __attribute__ liberally, and do not expect it to be ifdef-ed away. Suggested from Nicholas Hutchinson by github issue. --- patches/windows_headers.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/windows_headers.patch b/patches/windows_headers.patch index cfbed95..0e9428c 100644 --- a/patches/windows_headers.patch +++ b/patches/windows_headers.patch @@ -19,7 +19,7 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h #include /* crypto/opensslconf.h.in */ -+#if defined(_MSC_VER) && !defined(__attribute__) ++#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) +#define __attribute__(a) +#endif + -- cgit v1.2.3-55-g6feb