Avoid #include with inline function on C++Builder
[openssl.git] / e_os.h
diff --git a/e_os.h b/e_os.h
index b19c4829de2a5768095112e5cd18a7de5d539f54..8bfc1dcb100aa32745c23c4afb41121ee62f5138 100644 (file)
--- a/e_os.h
+++ b/e_os.h
         */
 #    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>