summaryrefslogtreecommitdiffstats
path: root/gfx/graphite2/moz-gr-update.sh
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-14 18:26:08 +0000
committerMoonchild <moonchild@palemoon.org>2020-05-14 18:26:08 +0000
commitf05391a69f38107ff3f70431032a5520741147d8 (patch)
tree9da01715e46543747134ff5a0a1e028b3aa0642d /gfx/graphite2/moz-gr-update.sh
parenta89818f5c1cfefc3ae758ace18d8cbdbed90ac7d (diff)
downloadUXP-f05391a69f38107ff3f70431032a5520741147d8.tar
UXP-f05391a69f38107ff3f70431032a5520741147d8.tar.gz
UXP-f05391a69f38107ff3f70431032a5520741147d8.tar.lz
UXP-f05391a69f38107ff3f70431032a5520741147d8.tar.xz
UXP-f05391a69f38107ff3f70431032a5520741147d8.zip
Issue #80 - de-unify and fix up gfx/graphite2
With de-unified building we have to re-apply the fix-up for <cstdio>, and additionally the same for <cstring> to prevent the compiler picking the wrong versions of standard functions.
Diffstat (limited to 'gfx/graphite2/moz-gr-update.sh')
-rw-r--r--gfx/graphite2/moz-gr-update.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/gfx/graphite2/moz-gr-update.sh b/gfx/graphite2/moz-gr-update.sh
index faaab1b17..b14102d1f 100644
--- a/gfx/graphite2/moz-gr-update.sh
+++ b/gfx/graphite2/moz-gr-update.sh
@@ -33,9 +33,10 @@ echo "$TARBALL" >> gfx/graphite2/README.mozilla
echo ""
echo "See" $0 "for update procedure." >> gfx/graphite2/README.mozilla
-# fix up includes because of bug 721839 (cstdio) and bug 803066 (Windows.h)
-#find gfx/graphite2/ -name "*.cpp" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/Windows.h/windows.h/;" {} \;
-#find gfx/graphite2/ -name "*.h" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/Windows.h/windows.h/;" {} \;
+# fix up includes because of BZ bug 721839 (cstdio) and BZ bug 803066 (Windows.h)
+# Additional issue with inclusion of <cstring> in non-unified mode (Issue #80)
+find gfx/graphite2/ -name "*.cpp" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/<cstring>/<string.h>/;s/Windows.h/windows.h/;" {} \;
+find gfx/graphite2/ -name "*.h" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/<cstring>/<string.h>/;s/Windows.h/windows.h/;" {} \;
# summarize what's been touched
echo Updated to $RELEASE.