summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-08 22:37:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-08 22:41:34 +0900
commite7128aa772787a9c9e95708e2d2534484861a765 (patch)
tree17aaf4ae3d49c005bb0949d33914b9b57b70b93c /random.c
parentdd04b8034bf08243fc14763c2b4fb5490da626d7 (diff)
Disable deprecation error on mingw
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/random.c b/random.c
index f786cac..e567665 100644
--- a/random.c
+++ b/random.c
@@ -402,6 +402,8 @@ fill_random_bytes_syscall(void *seed, size_t size, int unused)
old_prov = (HCRYPTPROV)ATOMIC_PTR_CAS(perm_prov, 0, prov);
if (LIKELY(!old_prov)) { /* no other threads acquired */
if (prov != (HCRYPTPROV)INVALID_HANDLE_VALUE) {
+#undef RUBY_UNTYPED_DATA_WARNING
+#define RUBY_UNTYPED_DATA_WARNING 0
rb_gc_register_mark_object(Data_Wrap_Struct(0, 0, release_crypt, &perm_prov));
}
}