#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
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)
// Like sprintf, but when return value >= 0 it returns
// a pointer to a malloc'd string in *sptr.
// If return >= 0, use free to delete *sptr.
-int vasprintf( char **sptr, const char *__restrict format, va_list ap )
+int __libcpp_vasprintf( char **sptr, const char *__restrict format, va_list ap )
{
*sptr = NULL;
// Query the count required.