diff options
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r-- | include/ruby/defines.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 49127e0106..25700165d0 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -45,6 +45,18 @@ extern "C" { #ifndef NOINLINE # define NOINLINE(x) x #endif +#ifndef ERRORFUNC +# define HAVE_ATTRIBUTE_ERRORFUNC 0 +# define ERRORFUNC(mesg, x) x +#else +# define HAVE_ATTRIBUTE_ERRORFUNC 1 +#endif +#ifndef WARNINGFUNC +# define HAVE_ATTRIBUTE_WARNINGFUNC 0 +# define WARNINGFUNC(mesg, x) x +#else +# define HAVE_ATTRIBUTE_WARNINGFUNC 1 +#endif #ifndef GCC_VERSION_SINCE #define GCC_VERSION_SINCE(major, minor, patchlevel) \ |