aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libcxx/support/win32
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2014-01-12 16:13:42 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-01-13 17:59:15 +0700
commit5d078cbbd7d4319ed6a852e14bf3e45f58a99511 (patch)
tree65844da2a4220c28f701cf16c7578fa935671a4f /system/lib/libcxx/support/win32
parent44cb63a6ecea58dc21d20843f5af0a006f8b36cd (diff)
Update libcxx to current version.
Diffstat (limited to 'system/lib/libcxx/support/win32')
-rw-r--r--system/lib/libcxx/support/win32/locale_win32.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/lib/libcxx/support/win32/locale_win32.cpp b/system/lib/libcxx/support/win32/locale_win32.cpp
index 1729d84a..5a437434 100644
--- a/system/lib/libcxx/support/win32/locale_win32.cpp
+++ b/system/lib/libcxx/support/win32/locale_win32.cpp
@@ -80,6 +80,16 @@ int wctob_l( wint_t c, locale_t loc )
return wctob( c );
}
+int snprintf_l(char *ret, size_t n, locale_t loc, const char *format, ...)
+{
+ __locale_raii __current( uselocale(loc), uselocale );
+ va_list ap;
+ va_start( ap, format );
+ int result = vsnprintf( ret, n, format, ap );
+ va_end(ap);
+ return result;
+}
+
int asprintf_l( char **ret, locale_t loc, const char *format, ... )
{
va_list ap;