aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2022-04-29 22:07:53 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2022-04-29 22:17:41 +0900
commit87aff644a4d5dbff48fd116ab8a2316afae3d4fd (patch)
tree9728e10e60919bc47a696c212092f5722d0269c2
parent5c7021517a6d7675276d3715f44ebef9f09ca0a7 (diff)
downloadportable-87aff644a4d5dbff48fd116ab8a2316afae3d4fd.tar.gz
portable-87aff644a4d5dbff48fd116ab8a2316afae3d4fd.tar.bz2
portable-87aff644a4d5dbff48fd116ab8a2316afae3d4fd.zip
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.
-rw-r--r--patches/windows_headers.patch2
1 files changed, 1 insertions, 1 deletions
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
19 #include <openssl/opensslfeatures.h> 19 #include <openssl/opensslfeatures.h>
20 /* crypto/opensslconf.h.in */ 20 /* crypto/opensslconf.h.in */
21 21
22+#if defined(_MSC_VER) && !defined(__attribute__) 22+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
23+#define __attribute__(a) 23+#define __attribute__(a)
24+#endif 24+#endif
25+ 25+