From 32d64b2e875f0d74cd433dff8bda9f8a98dcd44e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Aug 2019 15:29:14 +0200 Subject: defines: avoid underscore-prefixed defines Double-underscored or underscore plus uppercase letter at least. ... as they're claimed to be reserved. Reported-by: patnyb on github Fixes #4254 Closes #4255 --- tests/symbol-scan.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/symbol-scan.pl') diff --git a/tests/symbol-scan.pl b/tests/symbol-scan.pl index 6706aa707..1379299d3 100755 --- a/tests/symbol-scan.pl +++ b/tests/symbol-scan.pl @@ -119,11 +119,13 @@ for my $e (sort @syms) { # CURL_EXTERN - is a define used for libcurl functions that are external, # public. No app or other code should ever use it. # + # CURLINC_ - defines for header dual-include prevention, ignore those. + # # *_LAST and *_LASTENTRY are just prefix for the placeholders used for the # last entry in many enum series. # - if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) { + if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURLINC_|_LAST\z|_LASTENTRY\z)/) { $ignored++; next; } -- cgit v1.2.3