summaryrefslogtreecommitdiff
path: root/include/openssl/storeerr.h
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-09-28 00:46:00 +0200
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-09-28 20:26:37 +0200
commitd86167ec7513265bbafaf5c13fa60bd7c23aa732 (patch)
tree96b9b2a7a779ec6cf21e22b1b153e215275669e4 /include/openssl/storeerr.h
parentae4186b00487762f581b2276ba83e5214e0e7ee1 (diff)
downloadopenssl-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/storeerr.h')
-rw-r--r--include/openssl/storeerr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/openssl/storeerr.h b/include/openssl/storeerr.h
index 940beeec68..29e365bcc9 100644
--- a/include/openssl/storeerr.h
+++ b/include/openssl/storeerr.h
@@ -10,6 +10,12 @@
#ifndef OPENSSL_STOREERR_H
# define OPENSSL_STOREERR_H
+# pragma once
+
+# include <openssl/macros.h>
+# if !OPENSSL_API_3
+# define HEADER_OSSL_STOREERR_H
+# endif
# include <openssl/opensslconf.h>
# include <openssl/symhacks.h>