defines.h: fallback ERRORFUNC and WARNINGFUNC
* include/ruby/defines.h (ERRORFUNC, WARNINGFUNC): add fallback definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
80db1d6145
commit
6a787c68bc
@ -1,3 +1,8 @@
|
|||||||
|
Tue May 24 17:18:46 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* include/ruby/defines.h (ERRORFUNC, WARNINGFUNC): add fallback
|
||||||
|
definitions.
|
||||||
|
|
||||||
Tue May 24 16:37:43 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
Tue May 24 16:37:43 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (ruby_cflags): separate from optflags [Bug #12409]
|
* configure.in (ruby_cflags): separate from optflags [Bug #12409]
|
||||||
|
@ -45,6 +45,18 @@ extern "C" {
|
|||||||
#ifndef NOINLINE
|
#ifndef NOINLINE
|
||||||
# define NOINLINE(x) x
|
# define NOINLINE(x) x
|
||||||
#endif
|
#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
|
#ifndef GCC_VERSION_SINCE
|
||||||
#define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
#define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user