From 92913a0a60612b0160f3c2db7966f758275142ad Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 22 Jun 2016 12:11:46 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/7363 Reviewed-By: Fedor Indutny Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani --- tools/mk-ca-bundle.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mk-ca-bundle.pl b/tools/mk-ca-bundle.pl index 5ea3b937e31c03..30301fff9a305c 100755 --- a/tools/mk-ca-bundle.pl +++ b/tools/mk-ca-bundle.pl @@ -203,6 +203,7 @@ (%) my $start_of_cert = 0; open(TXT,"$txt") or die "Couldn't open $txt: $!\n"; +print CRT "#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS\n"; while () { if (/\*\*\*\*\* BEGIN LICENSE BLOCK \*\*\*\*\*/) { print CRT; @@ -310,6 +311,7 @@ (%) } } } +print CRT "#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS\n"; close(TXT) or die "Couldn't close $txt: $!\n"; close(CRT) or die "Couldn't close $crt.~: $!\n"; unless( $stdout ) {