diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-04-21 11:46:42 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-09 16:32:30 +0900 |
commit | b1618ac1209c588406d87a3802a6192c3fc3e18f (patch) | |
tree | c71c01610d67aca7e2f75a8833316abbc409f390 | |
parent | d0c70de80a129f800a5c4fc20004c82bd6250986 (diff) | |
download | ruby-b1618ac1209c588406d87a3802a6192c3fc3e18f.tar.gz |
include/ruby/defines.h: assume C89-compliance
stdlib.h, stddef.h and string.h are part of C89.
-rw-r--r-- | include/ruby/defines.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index cf585f210d..d854f30dce 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -105,20 +105,9 @@ extern "C" { #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif -#ifdef STDC_HEADERS -# include <stdlib.h> -# include <stddef.h> -#else -# ifdef HAVE_STDLIB_H -# include <stdlib.h> -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include <memory.h> -# endif -# include <string.h> -#endif +#include <stdlib.h> +#include <stddef.h> +#include <string.h> #ifdef HAVE_STRINGS_H # include <strings.h> #endif |