aboutsummaryrefslogtreecommitdiff
path: root/patches/crypto_namespace.h.patch
blob: 400030f353ef5a4ae549e800ae94a1825ca66f5b (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	Fri Aug  2 23:52:55 2024
+++ crypto/hidden/crypto_namespace.h	Fri Aug  2 23:53:17 2024
@@ -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))		\
@@ -47,5 +53,6 @@
 # define LCRYPTO_ALIAS1(pre,x)
 # define LCRYPTO_ALIAS(x)	asm("")
 #endif
+#endif /* _MSC_VER */
 
 #endif	/* _LIBCRYPTO_CRYPTO_NAMESPACE_H_ */