diff options
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r-- | include/ruby/defines.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 250b7b7ce2..cf585f210d 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -144,25 +144,19 @@ extern "C" { #define RUBY -#ifdef __cplusplus -# ifndef HAVE_STDARG_PROTOTYPES -# define HAVE_STDARG_PROTOTYPES 1 -# endif -#endif - /* No longer used since 2.5; kept for backwards compatibility */ -#ifndef HAVE_PROTOTYPES +#ifndef HAVE_PROTOTYPES # define HAVE_PROTOTYPES 1 #endif #undef _ #define _(args) args -#undef __ -#ifdef HAVE_STDARG_PROTOTYPES -# define __(args) args -#else -# define __(args) () +/* No longer used since 2.5; kept for backwards compatibility */ +#ifndef HAVE_STDARG_PROTOTYPES +# define HAVE_STDARG_PROTOTYPES 1 #endif +#undef __ +#define __(args) args #ifdef __cplusplus #define ANYARGS ... |