summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-22 16:18:01 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-07-23 14:30:12 +0900
commitff397d0016b515c8a998ece4a73168c0c6061f0e (patch)
treebcc6f169618d6dd6232473b5be6c34acfc243447
parentc4fc737f755f35ae1ddcf41dd06aad7b23be21da (diff)
dln.h: delete unused codes
defines.h already has them. Also __cplusplus can never be defined here.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3348
-rw-r--r--dln.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/dln.h b/dln.h
index d8999635bc..99106fd22b 100644
--- a/dln.h
+++ b/dln.h
@@ -13,22 +13,6 @@
#include "ruby/defines.h" /* for RUBY_SYMBOL_EXPORT_BEGIN */
-#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) ()
-#endif
-
RUBY_SYMBOL_EXPORT_BEGIN
#ifndef DLN_FIND_EXTRA_ARG