From 92abe7381596a5baaf62eec3e55172678ed1f1dd Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 13 Feb 2015 15:07:25 +0100 Subject: Possible win32 fix for missing locale_t type - part3. --- src/nolocale.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nolocale.h b/src/nolocale.h index 1b71ef2..3d8d50d 100644 --- a/src/nolocale.h +++ b/src/nolocale.h @@ -36,7 +36,7 @@ static inline double atof_nol(const char *nptr) #ifdef WIN32 - _locale_t l = _create_locale(LC_NUMERIC_MASK, "C"); + _locale_t l = _create_locale(LC_NUMERIC, "C"); res = _atof_l(nptr, l); @@ -65,7 +65,7 @@ static inline int sprintf_nol(char *str, const char *format, ...) #ifdef WIN32 - _locale_t l = _create_locale(LC_NUMERIC_MASK, "C"); + _locale_t l = _create_locale(LC_NUMERIC, "C"); va_list vl; va_start(vl, format); @@ -100,7 +100,7 @@ static inline int snprintf_nol(char *str, size_t size, const char *format, ...) #ifdef WIN32 - _locale_t l = _create_locale(LC_NUMERIC_MASK, "C"); + _locale_t l = _create_locale(LC_NUMERIC, "C"); va_list vl; va_start(vl, format); -- cgit v1.2.3