summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2013-01-06 13:44:21 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2013-01-06 13:44:21 +0000
commit6c389b1a5de74fc4d472e92e695283458dfdf1a8 (patch)
tree6123883baa767596b00c1da6d1192776328a438b
parentfb4defa5019dd62f802ee97d91841d92c798d399 (diff)
Move execution lines below variable definitions.
git-svn-id: svn://tug.org/texlive/trunk@28746 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/xetexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeX_ext.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/xetexdir/ChangeLog b/Build/source/texk/web2c/xetexdir/ChangeLog
index 6b2c05f8efc..f897c639443 100644
--- a/Build/source/texk/web2c/xetexdir/ChangeLog
+++ b/Build/source/texk/web2c/xetexdir/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-06 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * XeTeX_ext.c: Move u_getVersion(icuVersion) etc. below variable
+ definitions, because Visual Studio 2005 does not know c99.
+
2013-01-05 Peter Breitenlohner <peb@mppmu.mpg.de>
* XeTeX_ext.c: If necessary define or declare strndup().
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
index df7b1d19b13..97531e8f788 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
+++ b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
@@ -150,9 +150,6 @@ void initversionstring(char **versions)
UVersionInfo icuVersion;
char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";
- u_getVersion(icuVersion);
- u_versionToString(icuVersion, icu_version);
-
const_string fmt =
"Compiled with ICU version %s; using %s\n"
"Compiled with zlib version %s; using %s\n"
@@ -188,6 +185,9 @@ void initversionstring(char **versions)
/* len will be more than enough, because of the placeholder chars in fmt
that get replaced by the arguments */
+ u_getVersion(icuVersion);
+ u_versionToString(icuVersion, icu_version);
+
if (gFreeTypeLibrary == 0 && FT_Init_FreeType(&gFreeTypeLibrary) != 0) {
fprintf(stderr, "FreeType initialization failed!\n");
exit(9);