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.
This commit is contained in:
parent
5c7021517a
commit
87aff644a4
@ -19,7 +19,7 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
|
||||
#include <openssl/opensslfeatures.h>
|
||||
/* crypto/opensslconf.h.in */
|
||||
|
||||
+#if defined(_MSC_VER) && !defined(__attribute__)
|
||||
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
|
||||
+#define __attribute__(a)
|
||||
+#endif
|
||||
+
|
||||
|
Loading…
x
Reference in New Issue
Block a user