diff options
author | Brent Cook <busterb@gmail.com> | 2023-02-28 01:51:41 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-02-28 01:51:41 -0600 |
commit | b98c56fd5e86fa76eb55a98a2266a923f64f705c (patch) | |
tree | abfc4a6ae7db1cc78e3f9c530bead5ad353dc3aa /patches | |
parent | 65af3925dcb7fc84000cedc373d5f84db3fc3265 (diff) | |
download | portable-b98c56fd5e86fa76eb55a98a2266a923f64f705c.tar.gz portable-b98c56fd5e86fa76eb55a98a2266a923f64f705c.tar.bz2 portable-b98c56fd5e86fa76eb55a98a2266a923f64f705c.zip |
stop exposing hidden defines in public opensslconf.h
pull in hidden headers instead, patching drectly for Windows support
Diffstat (limited to 'patches')
-rw-r--r-- | patches/crypto_namespace.h.patch | 13 | ||||
-rw-r--r-- | patches/ssl_namespace.h.patch | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/patches/crypto_namespace.h.patch b/patches/crypto_namespace.h.patch new file mode 100644 index 0000000..2751524 --- /dev/null +++ b/patches/crypto_namespace.h.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- crypto/hidden/crypto_namespace.h.orig 2023-02-28 00:41:43.212756628 -0600 | ||
2 | +++ crypto/hidden/crypto_namespace.h 2023-02-28 00:42:01.152756349 -0600 | ||
3 | @@ -18,6 +18,10 @@ | ||
4 | #ifndef _LIBCRYPTO_CRYPTO_NAMESPACE_H_ | ||
5 | #define _LIBCRYPTO_CRYPTO_NAMESPACE_H_ | ||
6 | |||
7 | +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
8 | +#define __attribute__(a) | ||
9 | +#endif | ||
10 | + | ||
11 | /* | ||
12 | * If marked as 'used', then internal calls use the name with prefix "_lcry_" | ||
13 | * and we alias that to the normal name *and* the name with prefix "_libre_"; | ||
diff --git a/patches/ssl_namespace.h.patch b/patches/ssl_namespace.h.patch new file mode 100644 index 0000000..649e862 --- /dev/null +++ b/patches/ssl_namespace.h.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- ssl/hidden/ssl_namespace.h.orig 2023-02-28 00:42:20.928756042 -0600 | ||
2 | +++ ssl/hidden/ssl_namespace.h 2023-02-28 00:43:16.372755180 -0600 | ||
3 | @@ -18,6 +18,10 @@ | ||
4 | #ifndef _LIBSSL_SSL_NAMESPACE_H_ | ||
5 | #define _LIBSSL_SSL_NAMESPACE_H_ | ||
6 | |||
7 | +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
8 | +#define __attribute__(a) | ||
9 | +#endif | ||
10 | + | ||
11 | /* | ||
12 | * If marked as 'used', then internal calls use the name with prefix "_lssl_" | ||
13 | * and we alias that to the normal name. | ||