aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/conf-w32ce-msc/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/conf-w32ce-msc/build.mk')
-rwxr-xr-xcontrib/conf-w32ce-msc/build.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/conf-w32ce-msc/build.mk b/contrib/conf-w32ce-msc/build.mk
index 4a77a99a..70cae832 100755
--- a/contrib/conf-w32ce-msc/build.mk
+++ b/contrib/conf-w32ce-msc/build.mk
@@ -219,15 +219,21 @@ copy-static-source:
cd ../contrib/conf-w32ce-msc ; \
cp -t $(targetsrc)/gpgme/src $(conf_sources)
-
+# We create a dummy sehmap.h which will be included first due to -I. .
+# For some reasons sehmap.h is included by MSC for WindowsCE and
+# introduces a macro "leave" which conflicts of our use of "leave" for
+# a label (leave and enter are pretty common names for pro- and epilog
+# code).
copy-built-source:
@if [ ! -f ./gpgme.h ]; then \
echo "Please build using ./autogen.sh --build-w32ce first"; \
exit 1; \
fi
cp -t $(targetsrc)/gpgme/src $(built_sources)
+ echo '/* Dummy replacement for useless header. */' \
+ > $(targetsrc)/gpgme/src/sehmap.h
-copy-source: copy-static-source copy-built-source
+copy-source: copy-static-source copy-built-source
.c.obj: