From: Mikko Rasa Date: Mon, 4 Sep 2023 22:01:31 +0000 (+0300) Subject: Allow spaces after # when reading includes from C source files X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=c1cb9e8078e54b1ecd7950841d2eba6993c2f036;p=builder.git Allow spaces after # when reading includes from C source files --- diff --git a/source/lib/csourcefile.cpp b/source/lib/csourcefile.cpp index bc76605..96030a9 100644 --- a/source/lib/csourcefile.cpp +++ b/source/lib/csourcefile.cpp @@ -21,7 +21,7 @@ CSourceFile::CSourceFile(Builder &b, const Component &c, const FS::Path &p): void CSourceFile::parse_includes(IO::Base &in) { - static Regex r_include("^[ \t]*#include[ \t]+([\"<].*)[\">]"); + static Regex r_include("^[ \t]*# *include[ \t]+([\"<].*)[\">]"); string line; while(in.getline(line))