diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-09-28 00:46:00 +0200 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-09-28 20:26:37 +0200 |
commit | d86167ec7513265bbafaf5c13fa60bd7c23aa732 (patch) | |
tree | 96b9b2a7a779ec6cf21e22b1b153e215275669e4 /include/openssl/symhacks.h | |
parent | ae4186b00487762f581b2276ba83e5214e0e7ee1 (diff) | |
download | openssl-new-d86167ec7513265bbafaf5c13fa60bd7c23aa732.tar.gz |
Add legacy include guards to public header files
For every public header file, the old include guard definition needs
to be added in addition to the new one
include/openssl/file.h:
#ifndef OPENSSL_FILE_H
# define OPENSSL_FILE_H
# pragma once
# include <openssl/macros.h>
# if !OPENSSL_API_3
# define HEADER_FILE_H
# endif
...
This is going to ensure that applications which use the old include guards
externally, for example like this
#ifndef HEADER_FILE_H
# include <openssl/file.h>
#endif
will not fail to compile.
In addition to the legacy guard, the public header files also receive a
'# pragma once' directive.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9333)
Diffstat (limited to 'include/openssl/symhacks.h')
-rw-r--r-- | include/openssl/symhacks.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/openssl/symhacks.h b/include/openssl/symhacks.h index 6a477b4ada..abc5df3874 100644 --- a/include/openssl/symhacks.h +++ b/include/openssl/symhacks.h @@ -9,6 +9,12 @@ #ifndef OPENSSL_SYMHACKS_H # define OPENSSL_SYMHACKS_H +# pragma once + +# include <openssl/macros.h> +# if !OPENSSL_API_3 +# define HEADER_SYMHACKS_H +# endif # include <openssl/e_os2.h> |