]> granicus.if.org Git - php/commitdiff
fix compilation with vc14
authorAnatol Belski <ab@php.net>
Sun, 5 Apr 2015 18:59:26 +0000 (20:59 +0200)
committerAnatol Belski <ab@php.net>
Wed, 22 Apr 2015 20:25:33 +0000 (22:25 +0200)
ext/standard/string.c

index 01a87fe9196c8756866cb2f06cbaba7c052df259..6fef45bb63cf1176aed02d833c81a2218b655f4d 100644 (file)
@@ -197,7 +197,10 @@ PHPAPI struct lconv *localeconv_r(struct lconv *out)
        tsrm_mutex_lock( locale_mutex );
 # endif
 
-#if defined(PHP_WIN32) && defined(ZTS)
+/*  cur->locinfo is struct __crt_locale_info which implementation is
+       hidden in vc14. TODO revisit this and check if a workaround available
+       and needed. */
+#if defined(PHP_WIN32) && _MSC_VER < 1900 && defined(ZTS)
        {
                /* Even with the enabled per thread locale, localeconv
                        won't check any locale change in the master thread. */