Suppress macro redefinition warnings

When building with ruby, `snprintf` is replaced with `ruby_snprintf`.
This commit is contained in:
Nobuyoshi Nakada 2023-09-06 01:23:35 +09:00
parent ab9d1910ef
commit 88b25294b0
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -36,7 +36,7 @@
#endif
// Windows versions before 2015 use _snprintf
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#if !defined(snprintf) && defined(_MSC_VER) && (_MSC_VER < 1900)
# define snprintf _snprintf
#endif