Suppress macro redefinition warnings
When building with ruby, `snprintf` is replaced with `ruby_snprintf`.
This commit is contained in:
parent
ab9d1910ef
commit
88b25294b0
@ -36,7 +36,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Windows versions before 2015 use _snprintf
|
// 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
|
# define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user