aboutsummaryrefslogtreecommitdiff
path: root/util/mkerr.pl
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-09-28 00:45:57 +0200
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-09-28 20:26:36 +0200
commitae4186b00487762f581b2276ba83e5214e0e7ee1 (patch)
tree78787c492eea42ddde78a9423aa1b507ffee162a /util/mkerr.pl
parent8c78f0ec63f3e16bac1b888dbabf2b6c2d53a1ae (diff)
downloadopenssl-ae4186b00487762f581b2276ba83e5214e0e7ee1.zip
openssl-ae4186b00487762f581b2276ba83e5214e0e7ee1.tar.gz
openssl-ae4186b00487762f581b2276ba83e5214e0e7ee1.tar.bz2
Fix header file include guard names
Make the include guards consistent by renaming them systematically according to the naming conventions below For the public header files (in the 'include/openssl' directory), the guard names try to match the path specified in the include directives, with all letters converted to upper case and '/' and '.' replaced by '_'. For the private header files files, an extra 'OSSL_' is added as prefix. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9333)
Diffstat (limited to 'util/mkerr.pl')
-rwxr-xr-xutil/mkerr.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl
index c288889..c8ec94d 100755
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -447,8 +447,8 @@ foreach my $lib ( keys %errorfile ) {
* https://www.openssl.org/source/license.html
*/
-#ifndef HEADER_${lib}ERR_H
-# define HEADER_${lib}ERR_H
+#ifndef OPENSSL_${lib}ERR_H
+# define OPENSSL_${lib}ERR_H
# include <openssl/opensslconf.h>
# include <openssl/symhacks.h>