summaryrefslogtreecommitdiff
path: root/missing.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-28 08:12:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-28 08:12:01 +0000
commit870fbf44d5c2df497e6117f231e46915b4233512 (patch)
tree3ec3794e03429e77775b875efdfbafeb05d409aa /missing.h
parentf0c0b81ca3f27dee4c1398a30c359e9903cfa0e4 (diff)
* missing/*.c: include missing.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
-rw-r--r--missing.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/missing.h b/missing.h
index 89a402708e..6879635040 100644
--- a/missing.h
+++ b/missing.h
@@ -16,6 +16,34 @@
#ifdef RUBY_EXTCONF_H
#include RUBY_EXTCONF_H
#endif
+#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
+
+#undef __
+#ifdef HAVE_STDARG_PROTOTYPES
+# define __(args) args
+#else
+# define __(args) ()
+#endif
+
+#ifdef __cplusplus
+#define ANYARGS ...
+#else
+#define ANYARGS
+#endif
#if defined(HAVE_SYS_TIME_H)
# include <sys/time.h>