diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-17 01:46:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-17 01:46:02 (GMT) |
commit | f94405e6bc0edf859a2628c947c802e56eda1d2f (patch) | |
tree | b3ef60a9b5af813e4e59ae80b86f00684b8c1962 /src/engine/SCons/Scanner/C.py | |
parent | 6cb67d2e3695f64b0b335564054b4a87d6875e94 (diff) | |
download | SCons-f94405e6bc0edf859a2628c947c802e56eda1d2f.zip SCons-f94405e6bc0edf859a2628c947c802e56eda1d2f.tar.gz SCons-f94405e6bc0edf859a2628c947c802e56eda1d2f.tar.bz2 |
Support the #import C preprocessor directive. (Greg Spencer)
Diffstat (limited to 'src/engine/SCons/Scanner/C.py')
-rw-r--r-- | src/engine/SCons/Scanner/C.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Scanner/C.py b/src/engine/SCons/Scanner/C.py index b59e66b..c06774d 100644 --- a/src/engine/SCons/Scanner/C.py +++ b/src/engine/SCons/Scanner/C.py @@ -38,7 +38,7 @@ import SCons.Scanner import SCons.Util import SCons.Warnings -include_re = re.compile('^[ \t]*#[ \t]*include[ \t]+(<|")([^>"]+)(>|")', re.M) +include_re = re.compile('^[ \t]*#[ \t]*(?:include|import)[ \t]+(<|")([^>"]+)(>|")', re.M) def CScan(fs = SCons.Node.FS.default_fs): """Return a prototype Scanner instance for scanning source files |