summaryrefslogtreecommitdiffstats
path: root/util/fix-includes
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 /util/fix-includes
parentae4186b00487762f581b2276ba83e5214e0e7ee1 (diff)
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 'util/fix-includes')
0 files changed, 0 insertions, 0 deletions