aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-01 03:52:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-01 03:52:20 +0000
commitdf294e94baee02ca2247b35ce32fb6b0ba26522c (patch)
tree8591e38fac3a58da2f9cfbd82ed6b3a8f3f4284c /include
parent61654cc2f1c34a21cab37efebf148c4b4b1da92c (diff)
downloadruby-df294e94baee02ca2247b35ce32fb6b0ba26522c.tar.gz
explicit_bzero.c: needs windows.h
* missing/explicit_bzero.c, random.c (explicit_bzero): SecureZeroMemory() needs windows.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/missing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index cec0d1ca76..1d7d2b8a82 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -252,7 +252,7 @@ explicit_bzero_by_memset_s(void *b, size_t len)
memset_s(b, len, 0, len);
}
# define explicit_bzero(b, len) explicit_bzero_by_memset_s(b, len)
-# elif defined _WIN32
+# elif defined SecureZeroMemory
# define explicit_bzero(b, len) SecureZeroMemory(b, len)
# endif
#endif