diff options
author | David Tardon <dtardon@redhat.com> | 2016-09-22 18:12:36 +0200 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2016-09-30 11:13:03 +0900 |
commit | f8bb280c924fb99d6d97b77806ab8b544efe1b37 (patch) | |
tree | 1d8fb037495bebe2348b41b4273002a851e69aed | |
parent | ef26c24b2a2cd3f05f8c74fb8dcc405713b88de8 (diff) |
use standard function
This fixes build with MSVC.
-rw-r--r-- | liblangtag/lt-xml.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/liblangtag/lt-xml.c b/liblangtag/lt-xml.c index 170d8bb..abf2254 100644 --- a/liblangtag/lt-xml.c +++ b/liblangtag/lt-xml.c @@ -16,9 +16,6 @@ #include <stddef.h> #include <string.h> -#ifdef HAVE_STRINGS_H -#include <strings.h> -#endif #include <sys/stat.h> #include <libxml/parser.h> #include <libxml/xpath.h> @@ -409,7 +406,7 @@ lt_xml_get_cldr(lt_xml_t *xml, xmlDocPtr *d = &pref[idx - 1], doc = NULL; do { - p = index(pp, ':'); + p = strchr(pp, ':'); if (p) s = lt_strndup(pp, p - pp); else |