Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3eb02b6

Browse filesBrowse files
bnoordhuisFishrock123
authored andcommitted
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: #7363 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent 32e068a commit 3eb02b6
Copy full SHA for 3eb02b6

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎tools/mk-ca-bundle.pl‎

Copy file name to clipboardExpand all lines: tools/mk-ca-bundle.pl
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.