diff --git a/tests/extern-scan.pl b/tests/extern-scan.pl index 7a5c29140..88594ed69 100755 --- a/tests/extern-scan.pl +++ b/tests/extern-scan.pl @@ -49,7 +49,9 @@ sub scanheader { open H, "<$f" || die; while() { if (/^(CURL_EXTERN.*)/) { - print "$1\n"; + my $decl = $1; + $decl =~ s/\r$//; + print "$decl\n"; } } close H;