aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r--include/ruby/defines.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index a4da7ea014..8474179515 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -145,20 +145,17 @@ extern "C" {
#define RUBY
#ifdef __cplusplus
-# ifndef HAVE_PROTOTYPES
-# define HAVE_PROTOTYPES 1
-# endif
# ifndef HAVE_STDARG_PROTOTYPES
# define HAVE_STDARG_PROTOTYPES 1
# endif
#endif
-#undef _
-#ifdef HAVE_PROTOTYPES
-# define _(args) args
-#else
-# define _(args) ()
+/* No longer used since 2.5; kept for backwards compatibility */
+#ifndef HAVE_PROTOTYPES
+# define HAVE_PROTOTYPES 1
#endif
+#undef _
+#define _(args) args
#undef __
#ifdef HAVE_STDARG_PROTOTYPES