mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
regint.h: version for secure functions
* regint.h (xvsnprintf): secure version functions are not supported on old VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a464db8a8
commit
c56182a0b0
1 changed files with 1 additions and 1 deletions
2
regint.h
2
regint.h
|
@ -202,7 +202,7 @@
|
|||
#define xmemcpy memcpy
|
||||
#define xmemmove memmove
|
||||
|
||||
#if defined(_WIN32) && !defined(__GNUC__)
|
||||
#if defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 90 && !defined(__GNUC__)
|
||||
# define xalloca _alloca
|
||||
# define xvsnprintf(buf,size,fmt,args) _vsnprintf_s(buf,size,_TRUNCATE,fmt,args)
|
||||
# define xsnprintf sprintf_s
|
||||
|
|
Loading…
Reference in a new issue