From 09bdb7913c0bf7f2b15d1c7f46b566e35fc5eb82 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 10 Jan 2016 06:45:36 +0000 Subject: missing.h: remove explicit_bzero_by_memset_s * include/ruby/missing.h (explicit_bzero_by_memset_s): remove inline implementation by memset_s, which needs a macro before including headers and can cause problems in extension libraries by the order of the macro and headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/explicit_bzero.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'missing') diff --git a/missing/explicit_bzero.c b/missing/explicit_bzero.c index 2409deca20..a7ff9cb517 100644 --- a/missing/explicit_bzero.c +++ b/missing/explicit_bzero.c @@ -1,5 +1,12 @@ +#ifndef __STDC_WANT_LIB_EXT1__ +#define __STDC_WANT_LIB_EXT1__ 1 +#endif + #include "ruby/missing.h" #include +#ifdef HAVE_MEMSET_S +# include +#endif #ifdef _WIN32 #include -- cgit v1.2.1