summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/make-cairo-def.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/make-cairo-def.sh b/src/make-cairo-def.sh
index 664df0887..1a1f366e8 100644
--- a/src/make-cairo-def.sh
+++ b/src/make-cairo-def.sh
@@ -14,11 +14,12 @@ def_file="$1"
cairo_features_h="$2"
shift 2
-echo Generating $def_file
+#echo Generating $def_file
+
(echo EXPORTS; \
(cat $* || echo 'cairo_ERROR ()' ) | \
egrep -v '^# *include' | \
- ( cat "$cairo_features_h" - | cpp -D__cplusplus - || echo 'cairo_ERROR ()' ) | \
+ ( cat "$cairo_features_h" - | egrep -v '^#pragma' | cpp -D__cplusplus - || echo 'cairo_ERROR ()' ) | \
egrep '^cairo_.* \(' | \
sed -e 's/[ ].*//' | \
sort; \