From 5773f7bee4a12774977acba47ad89779c7a89bcd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 23 Jan 2018 10:48:35 -0500 Subject: [PATCH] Improve #include structure of pem{,2}.h - pem2.h is empty, so pem.h doesn't need to include it. - pem2.h once declared ERR_load_PEM_strings(), so it should now include pemerr.h Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/5150) --- include/openssl/pem.h | 1 - include/openssl/pem2.h | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/openssl/pem.h b/include/openssl/pem.h index 3b21ab8234..55bcd712e6 100644 --- a/include/openssl/pem.h +++ b/include/openssl/pem.h @@ -15,7 +15,6 @@ # include # include # include -# include # include #ifdef __cplusplus diff --git a/include/openssl/pem2.h b/include/openssl/pem2.h index 8a46324af3..bad7ac897f 100644 --- a/include/openssl/pem2.h +++ b/include/openssl/pem2.h @@ -7,10 +7,7 @@ * https://www.openssl.org/source/license.html */ -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} +#ifndef HEADER_PEM2_H +# define HEADER_PEM2_H +# include #endif -- 2.34.1