[openssl] master update
Richard Levitte
levitte at openssl.org
Tue Apr 27 08:10:41 UTC 2021
The branch master has been updated
via 3e4981dd59d301f60bcc85f7c893db1ee4a21906 (commit)
from c85c5e1a5327379306f4c3f8248ace740c64c338 (commit)
- Log -----------------------------------------------------------------
commit 3e4981dd59d301f60bcc85f7c893db1ee4a21906
Author: Tanzinul Islam <tanzinul.islam at gmail.com>
Date: Sun Apr 25 19:59:29 2021 +0100
Avoid #include with inline function on C++Builder
Commit 6b2978406 exposed a bug with C++Builder's Clang-based compilers,
which cause inline function definitions in C translation units to not
be found by the linker. Disable the inclusion of the triggering header.
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15025)
-----------------------------------------------------------------------
Summary of changes:
e_os.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/e_os.h b/e_os.h
index b19c4829de..8bfc1dcb10 100644
--- a/e_os.h
+++ b/e_os.h
@@ -108,7 +108,14 @@
*/
# include <winsock2.h>
# include <ws2tcpip.h>
-# include <wspiapi.h>
+ /*
+ * Clang-based C++Builder 10.3.3 toolchains cannot find C inline
+ * definitions at link-time. This header defines WspiapiLoad() as an
+ * __inline function. https://quality.embarcadero.com/browse/RSP-33806
+ */
+# if !defined(__BORLANDC__) || !defined(__clang__)
+# include <wspiapi.h>
+# endif
/* yes, they have to be #included prior to <windows.h> */
# endif
# include <windows.h>
More information about the openssl-commits
mailing list