diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-24 13:22:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-24 13:22:53 +0000 |
commit | c56182a0b0852cf1fc2c13a9955a42693e0c97a4 (patch) | |
tree | ad117e2a538ec0e39a0895a04b15ac45729fab3e /regint.h | |
parent | 9a464db8a8e079437198c0949ca8dfe8e17dbf85 (diff) | |
download | ruby-c56182a0b0852cf1fc2c13a9955a42693e0c97a4.tar.gz |
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
Diffstat (limited to 'regint.h')
-rw-r--r-- | regint.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |