summaryrefslogtreecommitdiffstats
path: root/bin/checkposix
diff options
context:
space:
mode:
Diffstat (limited to 'bin/checkposix')
-rwxr-xr-xbin/checkposix2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/checkposix b/bin/checkposix
index 229a106..ef2951b 100755
--- a/bin/checkposix
+++ b/bin/checkposix
@@ -35,6 +35,8 @@ while (<>) {
# Get rid of string constants if they begin and end on this line.
s/([\'\"])([^\1]|\\\1)*?\1/$1$1/g;
+ # Get rid of preprocessor directives
+ s/^\#.*//;
# Now find all function calls on this line
while (($name)=/\b([a-gi-z_A-GI-Z]\w*)\s*\(/) {