summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 07:20:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 07:20:23 +0000
commite93b8f1c892672a06bd6861859373e7bec49c3f6 (patch)
tree75443f1c65204e8b871d2a46a9b1371eec994b91 /util.h
parent6d9e4a20e107805da30dc6d4e4e80bebcb46bdb5 (diff)
* dln.h, ruby.h, util.h: enable prototypes in C++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.h b/util.h
index 60e0ff4..51f32d0 100644
--- a/util.h
+++ b/util.h
@@ -14,6 +14,14 @@
#define UTIL_H
#ifndef _
+#ifdef __cplusplus
+# ifndef HAVE_PROTOTYPES
+# define HAVE_PROTOTYPES 1
+# endif
+# ifndef HAVE_STDARG_PROTOTYPES
+# define HAVE_STDARG_PROTOTYPES 1
+# endif
+#endif
#ifdef HAVE_PROTOTYPES
# define _(args) args
#else