Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / external / liblangtag / liblangtag-0.5.1-msvc-strtoull.patch
blobe50dddb76c0ae9c146f88242aa51981936576ea4
1 diff -ru langtag.orig/extensions/lt-ext-ldml-u.c langtag/extensions/lt-ext-ldml-u.c
2 --- UnpackedTarball/langtag.orig/extensions/lt-ext-ldml-u.c 2013-04-22 10:06:56.000000000 +0200
3 +++ UnpackedTarball/langtag/extensions/lt-ext-ldml-u.c 2013-04-30 12:56:19.557490167 +0200
4 @@ -137,7 +137,11 @@
5 if (!strchr(hexdigit, subtag[j]))
6 goto bail2;
8 +#ifdef _WIN32
9 + x = _strtoui64(subtag, &p, 16);
10 +#else
11 x = strtoull(subtag, &p, 16);
12 +#endif
13 if (p && p[0] == 0 && x <= 0x10ffff) {
14 retval = TRUE;
15 xmlFree(name);