diff options
-rwxr-xr-x | giscanner/scannermain.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 715084d4..98d56878 100755 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -27,6 +27,7 @@ import shutil import subprocess import sys import tempfile +import platform from giscanner import message from giscanner.annotationparser import GtkDocCommentBlockParser @@ -383,6 +384,9 @@ def create_source_scanner(options, args): else: filenames = extract_filenames(args) + if platform.system() == 'Darwin': + options.cpp_undefines.append('__BLOCKS__') + # Run the preprocessor, tokenize and construct simple # objects representing the raw C symbols ss = SourceScanner() |