summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/cpp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/cpp.c b/cpp/cpp.c
index 9ac04f3..a6e7337 100644
--- a/cpp/cpp.c
+++ b/cpp/cpp.c
@@ -686,8 +686,11 @@ do_preproc()
} else
no_match=1;
}
+ } else if (!val) {
+ /* Empty directives used to denote that a file is to be run through
+ * the preprocessor in K&R. Do not complain if we got no token. */
+ no_match=1;
}
- else no_match=1;
if( no_match )
{