Don't leak namespace macros out of the library

This commit is contained in:
Theo Buehler 2022-11-23 18:36:19 +01:00
parent 67ab6a1187
commit 38089b5596

View File

@ -8,7 +8,7 @@
+#define __attribute__(a)
+#endif
+
+#ifndef LIBRESSL_NAMESPACE
+#if defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_NAMESPACE)
+# define LCRYPTO_UNUSED(x)
+# define LCRYPTO_USED(x)
+# define LCRYPTO_ALIAS1(pre, x)
@ -17,7 +17,7 @@
+# define LSSL_UNUSED(x)
+# define LSSL_USED(x)
+# define LSSL_ALIAS(x)
+#endif /* !LIBRESSL_NAMESPACE */
+#endif /* LIBRESSL_INTERNAL && !LIBRESSL_NAMESPACE */
+
#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
#define OPENSSLDIR "/etc/ssl"