mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Disable deprecation error on mingw
This commit is contained in:
parent
dd04b8034b
commit
e7128aa772
2
random.c
2
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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user