Skip to content

Commit d02d0b9

Browse files
committed
tools: output include guards in mk-ca-bundle.pl
Commit eff96d3 ("src: add include guards to internal headers") adds include guards. Update tools/mk-ca-bundle.pl to output them when generating src/node_root_certs.h. PR-URL: nodejs#7363 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 44981f2 commit d02d0b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/mk-ca-bundle.pl

+2
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ (%)
203203
my $start_of_cert = 0;
204204

205205
open(TXT,"$txt") or die "Couldn't open $txt: $!\n";
206+
print CRT "#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS\n";
206207
while (<TXT>) {
207208
if (/\*\*\*\*\* BEGIN LICENSE BLOCK \*\*\*\*\*/) {
208209
print CRT;
@@ -310,6 +311,7 @@ (%)
310311
}
311312
}
312313
}
314+
print CRT "#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS\n";
313315
close(TXT) or die "Couldn't close $txt: $!\n";
314316
close(CRT) or die "Couldn't close $crt.~: $!\n";
315317
unless( $stdout ) {

0 commit comments

Comments
 (0)