aboutsummaryrefslogtreecommitdiff
path: root/patches/opensslfeatures.h.patch
blob: 618de7374c3b993e7ea58c5483c8c6d977d426ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- include/openssl/opensslfeatures.h.orig	Fri Jul 28 06:04:42 2023
+++ include/openssl/opensslfeatures.h	Fri Jul 28 06:09:00 2023
@@ -8,6 +8,13 @@
 #define LIBRESSL_HAS_TLS1_3
 #define LIBRESSL_HAS_DTLS1_2
 
+/*
+ * Used for compatibility with compilers lacking __attribute__
+ */
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
+#define __attribute__(a)
+#endif
+
 #define OPENSSL_THREADS
 
 #define OPENSSL_NO_BUF_FREELISTS