mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-24 07:43:44 +02:00
13 lines
725 B
Diff
13 lines
725 B
Diff
# Makes Boost use `sprintf` instead of `snprintf` on platforms with no `snprintf` support.
|
|
|
|
--- a/include/boost/assert/source_location.hpp
|
|
+++ b/include/boost/assert/source_location.hpp
|
|
@@ -76,7 +76,7 @@ public:
|
|
# pragma warning( disable: 4996 )
|
|
#endif
|
|
|
|
-#if ( defined(_MSC_VER) && _MSC_VER < 1900 ) || ( defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) )
|
|
+#if ( defined(_MSC_VER) && _MSC_VER < 1900 ) || ( defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) ) || defined(MKXPZ_NO_SNPRINTF)
|
|
# define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::sprintf(buffer, format, arg)
|
|
#else
|
|
# define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg)
|