stop exposing hidden defines in public opensslconf.h
pull in hidden headers instead, patching drectly for Windows support
This commit is contained in:
13
patches/crypto_namespace.h.patch
Normal file
13
patches/crypto_namespace.h.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- crypto/hidden/crypto_namespace.h.orig 2023-02-28 00:41:43.212756628 -0600
|
||||
+++ crypto/hidden/crypto_namespace.h 2023-02-28 00:42:01.152756349 -0600
|
||||
@@ -18,6 +18,10 @@
|
||||
#ifndef _LIBCRYPTO_CRYPTO_NAMESPACE_H_
|
||||
#define _LIBCRYPTO_CRYPTO_NAMESPACE_H_
|
||||
|
||||
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
|
||||
+#define __attribute__(a)
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* If marked as 'used', then internal calls use the name with prefix "_lcry_"
|
||||
* and we alias that to the normal name *and* the name with prefix "_libre_";
|
13
patches/ssl_namespace.h.patch
Normal file
13
patches/ssl_namespace.h.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- ssl/hidden/ssl_namespace.h.orig 2023-02-28 00:42:20.928756042 -0600
|
||||
+++ ssl/hidden/ssl_namespace.h 2023-02-28 00:43:16.372755180 -0600
|
||||
@@ -18,6 +18,10 @@
|
||||
#ifndef _LIBSSL_SSL_NAMESPACE_H_
|
||||
#define _LIBSSL_SSL_NAMESPACE_H_
|
||||
|
||||
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
|
||||
+#define __attribute__(a)
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* If marked as 'used', then internal calls use the name with prefix "_lssl_"
|
||||
* and we alias that to the normal name.
|
Reference in New Issue
Block a user