summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/src/support/win32/locale_win32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcxx/src/support/win32/locale_win32.cpp')
-rw-r--r--lib/libcxx/src/support/win32/locale_win32.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcxx/src/support/win32/locale_win32.cpp b/lib/libcxx/src/support/win32/locale_win32.cpp
index fdca7efff06..cad9d4e8146 100644
--- a/lib/libcxx/src/support/win32/locale_win32.cpp
+++ b/lib/libcxx/src/support/win32/locale_win32.cpp
@@ -13,6 +13,8 @@
#include <memory>
#include <type_traits>
+int __libcpp_vasprintf(char **sptr, const char *__restrict fmt, va_list ap);
+
using std::__libcpp_locale_guard;
// FIXME: base currently unused. Needs manual work to construct the new locale
@@ -105,7 +107,7 @@ int asprintf_l( char **ret, locale_t loc, const char *format, ... )
int vasprintf_l( char **ret, locale_t loc, const char *format, va_list ap )
{
__libcpp_locale_guard __current(loc);
- return vasprintf( ret, format, ap );
+ return __libcpp_vasprintf( ret, format, ap );
}
#if !defined(_LIBCPP_MSVCRT)