From 34f2fd6c579bf4d59f08820711ff8a3e2bf20429 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 25 May 2010 21:15:36 +0200 Subject: Support K&R style empty preprocessor directives --- cpp/cpp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) { -- cgit v1.2.1