mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
[ruby/yarp] Use _snprintf when using Windows versions prior to 2015 (< 1900)
Ruby CI has informed us that snprintf is not available on Windows
versions, but _sprintf is supported. This commit allows us to use
_sprintf where applicable
818cc96afe
This commit is contained in:
parent
c989c1b068
commit
45740e7a24
Notes:
git
2023-08-17 00:47:56 +00:00
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@
|
||||||
# define inline __inline
|
# define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Windows versions before 2015 use _snprintf
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||||
|
# define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
int yp_strncasecmp(const char *string1, const char *string2, size_t length);
|
int yp_strncasecmp(const char *string1, const char *string2, size_t length);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue