зеркало из https://github.com/github/ruby.git
Fix compilation on gcc 4.6
if __has_feature is not defined, it can't compile git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2bf5be1db5
Коммит
165ebcb467
8
gc.c
8
gc.c
|
@ -31,8 +31,12 @@
|
|||
#include <sys/types.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if /* is ASAN enabled? */ defined(__has_feature) ? \
|
||||
__has_feature(address_sanitizer) /* Clang */ : \
|
||||
#ifndef __has_feature
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
#if /* is ASAN enabled? */ \
|
||||
__has_feature(address_sanitizer) /* Clang */ || \
|
||||
defined(__SANITIZE_ADDRESS__) /* GCC 4.8.x */
|
||||
#define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS \
|
||||
__attribute__((no_address_safety_analysis)) \
|
||||
|
|
Загрузка…
Ссылка в новой задаче