summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2010-05-25 21:15:36 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-29 16:30:52 +0100
commit34f2fd6c579bf4d59f08820711ff8a3e2bf20429 (patch)
treee5ccb90b50b7c3e3cc15b874d0b01db5b3de1638
parentaf164f42c91e976802628de8195d84299a251ba9 (diff)
downloaddev86-34f2fd6c579bf4d59f08820711ff8a3e2bf20429.tar.gz
Support K&R style empty preprocessor directives
-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 )
{