summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index a58c44a2..46ab7f5a 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -56,6 +56,7 @@ TYPE_QUALIFIER_NONE = 0
TYPE_QUALIFIER_CONST = 1 << 1
TYPE_QUALIFIER_RESTRICT = 1 << 2
TYPE_QUALIFIER_VOLATILE = 1 << 3
+TYPE_QUALIFIER_EXTENSION = 1 << 4
FUNCTION_NONE = 0
FUNCTION_INLINE = 1 << 1
@@ -231,11 +232,6 @@ class SourceScanner(object):
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
- proc.stdin.write('#define __const\n')
- proc.stdin.write('#define __extension__\n')
- proc.stdin.write('#define __inline\n')
- proc.stdin.write('#define __restrict\n')
-
for define in defines:
proc.stdin.write('#ifndef %s\n' % (define, ))
proc.stdin.write('# define %s\n' % (define, ))