]> granicus.if.org Git - openssl/commitdiff
Add legacy include guard manually to opensslconf.h.in
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Thu, 22 Aug 2019 15:33:38 +0000 (17:33 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sat, 28 Sep 2019 18:24:22 +0000 (20:24 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9333)

include/openssl/opensslconf.h.in

index f31588a0aa190fafb1eb63252fbbbbc63259d49e..73bda5a81ad7e713d2814a9091241812d3bb5a6a 100644 (file)
@@ -61,9 +61,13 @@ extern "C" {
 
 # define RC4_INT {- $config{rc4_int} -}
 
-#include <openssl/macros.h>
-
 # ifdef  __cplusplus
 }
 # endif
+
+# include <openssl/macros.h>
+# if !OPENSSL_API_3
+#  define HEADER_FILE_H /* deprecated in version 3.0 */
+# endif
+
 #endif                          /* HEADER_OPENSSLCONF_H */