From d2a5a44809a436caba2c531f88b13f4ebc50ab98 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Sun, 3 Mar 2002 05:32:57 +0000 Subject: [PATCH] get rid of erroneous error --- ppremake/check_include.cxx | 7 ++++++- ppremake/ppDependableFile.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ppremake/check_include.cxx b/ppremake/check_include.cxx index e55f2f3f77..e68aeeb361 100644 --- a/ppremake/check_include.cxx +++ b/ppremake/check_include.cxx @@ -41,8 +41,13 @@ check_include(const string &line) { p++; } + // note: ppremake cant expand cpp #define vars used as include targets yet + if (p >= line.length() || (line[p] != '"' && line[p] != '<')) { - cerr << "Ignoring invalid #include directive: " << line << "\n"; + // it it starts with a capital, assume its a #define var used as include tgt, + // and dont print a warning + if(!((line[p]>='A')&&(line[p]<='Z'))) + cerr << "Ignoring invalid #include directive: " << line << "\n"; return string(); } diff --git a/ppremake/ppDependableFile.h b/ppremake/ppDependableFile.h index eb1f36b0fc..5624b9bd02 100644 --- a/ppremake/ppDependableFile.h +++ b/ppremake/ppDependableFile.h @@ -7,7 +7,7 @@ #define PPDEPENDABLEFILE_H #include "ppremake.h" - +#include #include #include