Update some inclusions of <openssl/macros.h>
authorRichard Levitte <levitte@openssl.org>
Tue, 5 Nov 2019 16:36:44 +0000 (17:36 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 7 Nov 2019 10:37:25 +0000 (11:37 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10364)

include/openssl/opensslv.h.in
ssl/methods.c

index 69ba8c657aeb000d80d68e070e218fd57733b260..938050472146d6572d7902edc6cfdad15b9dc7d0 100644 (file)
 # define OPENSSL_OPENSSLV_H
 # pragma once
 
-# include <openssl/macros.h>
-# if !OPENSSL_API_3
-#  define HEADER_OPENSSLV_H
-# endif
-
 # ifdef  __cplusplus
 extern "C" {
 # endif
@@ -138,4 +133,10 @@ _____
 # ifdef  __cplusplus
 }
 # endif
+
+# include <openssl/macros.h>
+# ifndef OPENSSL_NO_DEPRECATED_3_0
+#  define HEADER_OPENSSLV_H
+# endif
+
 #endif                          /* OPENSSL_OPENSSLV_H */
index 6118fdbaae186e5fa812cc0bce9aae196c22de53..525f59e91231c7b4c2004d7b6d71e98e09698eba 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <stdio.h>
+#include <openssl/macros.h>
 #include <openssl/objects.h>
 #include "ssl_local.h"