From f4b24c219b149c8b202035ccba19cfa5341c8002 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Dec 2001 07:20:23 +0000 Subject: * dln.h, ruby.h, util.h: enable prototypes in C++. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 60e0ff4f6..51f32d017 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 -- cgit