summaryrefslogtreecommitdiff
path: root/regen/reentr.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-04-20 10:16:11 -0600
committerKarl Williamson <khw@cpan.org>2017-06-02 12:47:18 -0600
commit6a5bc5acd0f35a93138716f5c3681baa1e139c65 (patch)
treece611dc3dd62d8e879ea0fe2c9bfe369733a916b /regen/reentr.pl
parentb063b0a874bbc4724894885b0a633865675db9ff (diff)
downloadperl-6a5bc5acd0f35a93138716f5c3681baa1e139c65.tar.gz
Use new paradigm for hdr file double inclusion guard
We changed to use symbols not likely to be used by non-Perl code that could conflict, and which have trailing underbars, so they don't look like a regular Perl #define. See https://rt.perl.org/Ticket/Display.html?id=131110 There are many more header files which are not guarded.
Diffstat (limited to 'regen/reentr.pl')
-rw-r--r--regen/reentr.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regen/reentr.pl b/regen/reentr.pl
index b73193ce56..1fc14e21ca 100644
--- a/regen/reentr.pl
+++ b/regen/reentr.pl
@@ -62,8 +62,8 @@ sub open_print_header {
my $h = open_print_header('reentr.h');
print $h <<EOF;
-#ifndef REENTR_H
-#define REENTR_H
+#ifndef PERL_REENTR_H_
+#define PERL_REENTR_H_
/* If compiling for a threaded perl, we will macro-wrap the system/library
* interfaces (e.g. getpwent()) which have threaded versions