зеркало из https://github.com/github/ruby.git
Suppress warning: this use of "defined" may not be portable
Use of defined() in macro expansion is considered non portable. https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01577.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c047f58da6
Коммит
1f63c0fcb8
|
@ -62,12 +62,15 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GCC_VERSION_SINCE
|
#ifndef GCC_VERSION_SINCE
|
||||||
|
# if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
|
||||||
# define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
# define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
||||||
(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))))))
|
||||||
|
# else
|
||||||
|
# define GCC_VERSION_SINCE(major, minor, patchlevel) 0
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* likely */
|
/* likely */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче