#endif
#include <ext/alloc_traits.h>
+#if !__has_builtin(__builtin_sprintf)
+# include <cstdio>
+#endif
+
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
static void
log_to_string(std::string& s, const_reference ref)
{
+#if ! __has_builtin(__builtin_sprintf)
+ __typeof__(&std::sprintf) __builtin_sprintf = &std::sprintf;
+#endif
+
char buf[40];
const char tab('\t');
s += "label: ";
static void
log_to_string(std::string& s, const std::pair<const void*, size_t>& ref)
{
+#if ! __has_builtin(__builtin_sprintf)
+ auto __builtin_sprintf = &std::sprintf;
+#endif
+
char buf[40];
const char tab('\t');
s += "label: ";
static gen_t generator(engine(), distribution);
#endif
+#if ! __has_builtin(__builtin_sprintf)
+ __typeof__(&std::sprintf) __builtin_sprintf = &std::sprintf;
+#endif
+
double random = generator();
if (random < distribution.min() || random > distribution.max())
{