瀏覽代碼

get rid of erroneous error

cxgeorge 24 年之前
父節點
當前提交
d2a5a44809
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 6 1
      ppremake/check_include.cxx
  2. 1 1
      ppremake/ppDependableFile.h

+ 6 - 1
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();
   }
 

+ 1 - 1
ppremake/ppDependableFile.h

@@ -7,7 +7,7 @@
 #define PPDEPENDABLEFILE_H
 
 #include "ppremake.h"
-
+#include <sys/time.h>
 #include <set>
 #include <vector>