aboutsummaryrefslogtreecommitdiff
path: root/patches/crypto_namespace.h.patch
blob: c18f0daa5a3d69935d8d571a4769dd52b2ced662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- crypto/hidden/crypto_namespace.h.orig	2024-04-09 10:12:22.320737957 +0200
+++ crypto/hidden/crypto_namespace.h	2024-04-11 09:09:31.163350515 +0200
@@ -24,6 +24,12 @@
  * external calls use the latter name.
  */
 
+#ifdef _MSC_VER
+# define LCRYPTO_UNUSED(x)
+# define LCRYPTO_USED(x)
+# define LCRYPTO_ALIAS1(pre, x)
+# define LCRYPTO_ALIAS(x)
+#else
 #ifdef LIBRESSL_NAMESPACE
 #ifdef LIBRESSL_CRYPTO_NAMESPACE
 #  define LCRYPTO_UNUSED(x)	__attribute__((deprecated))		\
@@ -43,5 +49,6 @@
 # define LCRYPTO_ALIAS1(pre,x)
 # define LCRYPTO_ALIAS(x)	asm("")
 #endif
+#endif /* _MSC_VER */
 
 #endif	/* _LIBCRYPTO_CRYPTO_NAMESPACE_H_ */