Skip to content

Commit

Permalink
rename: only remove the first MSC_VER when omitting inline
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomson committed May 13, 2024
1 parent 09048d0 commit 9499ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename.pl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sub translate {

if ($inline) {
$contents =~ s/^INLINE/${inline}/mg;
$contents =~ s/\n#ifdef _MSC_VER\n.*?\n#endif\n//sg;
$contents =~ s/\n#ifdef _MSC_VER\n.*?\n#endif\n//s;
}

if ($tests) {
Expand Down

0 comments on commit 9499ca6

Please sign in to comment.