diff --git a/lib/nlohmann-json/include/nlohmann/detail/output/serializer.hpp b/lib/nlohmann-json/include/nlohmann/detail/output/serializer.hpp index a64426444..84487bc17 100644 --- a/lib/nlohmann-json/include/nlohmann/detail/output/serializer.hpp +++ b/lib/nlohmann-json/include/nlohmann/detail/output/serializer.hpp @@ -354,15 +354,15 @@ class serializer { if (codepoint <= 0xFFFF) { - std::snprintf(string_buffer.data() + bytes, 7, "\\u%04x", - static_cast(codepoint)); + ::snprintf(string_buffer.data() + bytes, 7, "\\u%04x", + static_cast(codepoint)); bytes += 6; } else { - std::snprintf(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x", - static_cast(0xD7C0 + (codepoint >> 10)), - static_cast(0xDC00 + (codepoint & 0x3FF))); + ::snprintf(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x", + static_cast(0xD7C0 + (codepoint >> 10)), + static_cast(0xDC00 + (codepoint & 0x3FF))); bytes += 12; } }