mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
defines.h: avoid redefinition
* include/ruby/defines.h (GCC_VERSION_SINCE): get rid of re-definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e080d26f2
commit
3bdf613a45
1 changed files with 2 additions and 0 deletions
|
@ -46,12 +46,14 @@ extern "C" {
|
||||||
# define NOINLINE(x) x
|
# define NOINLINE(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef GCC_VERSION_SINCE
|
||||||
#define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
#define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
||||||
(defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__) && \
|
(defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__) && \
|
||||||
((__GNUC__ > (major)) || \
|
((__GNUC__ > (major)) || \
|
||||||
((__GNUC__ == (major) && \
|
((__GNUC__ == (major) && \
|
||||||
(__GNUC_MINOR__ > (minor)) || \
|
(__GNUC_MINOR__ > (minor)) || \
|
||||||
(__GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel))))))
|
(__GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel))))))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* likely */
|
/* likely */
|
||||||
#if __GNUC__ >= 3
|
#if __GNUC__ >= 3
|
||||||
|
|
Loading…
Reference in a new issue