diff options
author | Johan Dahlin <johan@gnome.org> | 2008-04-28 21:08:21 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-28 21:08:21 +0000 |
commit | b01ed146b04d718eb352d6321c374be1dcdb045f (patch) | |
tree | 90032b80bd51c90e797a453edb34d2583530d12f /giscanner/sourcescanner.py | |
parent | 248e8388f060b8f5e579a1047b87c6a0025c5bf3 (diff) | |
download | gobject-introspection-b01ed146b04d718eb352d6321c374be1dcdb045f.tar.gz |
Avoid recursion when scanning girepository.h
2008-04-28 Johan Dahlin <johan@gnome.org>
* giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
when scanning girepository.h
* giscanner/sourcescanner.py (SourceScanner._preprocess): Define
a __GI_SCANNER__ when we run.
svn path=/trunk/; revision=254
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r-- | giscanner/sourcescanner.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index bf5613c0..583db6b7 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -140,6 +140,7 @@ class SourceScanner(object): 'cpp', '-C', '-U__GNUC__', + '-D__GI_SCANNER__', '-I.', ] cpp_args += self._cpp_options |