summaryrefslogtreecommitdiffstats
path: root/external/hyphen
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-23 09:37:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-23 09:37:23 +0200
commite21cb524274c6719fe953001a19ba2124f1e8385 (patch)
tree3cbc14d01758bcf2abaf4a70cb7c9e537e45620b /external/hyphen
parentRemove dead code (diff)
downloadcore-e21cb524274c6719fe953001a19ba2124f1e8385.tar.gz
core-e21cb524274c6719fe953001a19ba2124f1e8385.zip
external/hypen: Fix for pre-C99
Change-Id: Iff0692768cbcaa68f79404a9a933044fe8bb9096
Diffstat (limited to 'external/hyphen')
-rw-r--r--external/hyphen/UnpackedTarball_hyphen.mk1
-rw-r--r--external/hyphen/hyphen-c99.patch.013
2 files changed, 14 insertions, 0 deletions
diff --git a/external/hyphen/UnpackedTarball_hyphen.mk b/external/hyphen/UnpackedTarball_hyphen.mk
index c112b3597338..72d54fd5a928 100644
--- a/external/hyphen/UnpackedTarball_hyphen.mk
+++ b/external/hyphen/UnpackedTarball_hyphen.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,hyphen,\
external/hyphen/hyphen-rhmin.patch \
external/hyphen/hyphen-build.patch \
external/hyphen/hyphen-fdo48017-wfopen.patch \
+ external/hyphen/hyphen-c99.patch.0 \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/hyphen/hyphen-c99.patch.0 b/external/hyphen/hyphen-c99.patch.0
new file mode 100644
index 000000000000..83930cb09e00
--- /dev/null
+++ b/external/hyphen/hyphen-c99.patch.0
@@ -0,0 +1,13 @@
+--- hyphen.c
++++ hyphen.c
+@@ -382,8 +382,9 @@
+ if (strncmp(path, WIN32_LONG_PATH_PREFIX, 4) == 0) {
+ int len = MultiByteToWideChar(CP_UTF8, 0, path, -1, NULL, 0);
+ wchar_t *buff = (wchar_t *) malloc(len * sizeof(wchar_t));
++ FILE * f;
+ MultiByteToWideChar(CP_UTF8, 0, path, -1, buff, len);
+- FILE * f = _wfopen(buff, (strcmp(mode, "r") == 0) ? L"r" : L"rb");
++ f = _wfopen(buff, (strcmp(mode, "r") == 0) ? L"r" : L"rb");
+ free(buff);
+ return f;
+ }