Don't use __has_feature in utils.cc
This commit is contained in:
parent
f34a4e315e
commit
2de6af2761
1 changed files with 4 additions and 4 deletions
|
|
@ -153,7 +153,7 @@ std::size_t current_memory_size()
|
|||
return memory_size;
|
||||
}
|
||||
|
||||
#if !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
//#if !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
|
||||
static void trace_new_func(void * ptr, const char * which, std::size_t size)
|
||||
{
|
||||
|
|
@ -223,11 +223,11 @@ static void trace_delete_func(void * ptr, const char * which)
|
|||
memory_tracing_active = true;
|
||||
}
|
||||
|
||||
#endif // !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
//#endif // !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
|
||||
} // namespace ledger
|
||||
|
||||
#if !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
//#if !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
|
||||
void * operator new(std::size_t size) throw (std::bad_alloc) {
|
||||
void * ptr = std::malloc(size);
|
||||
|
|
@ -274,7 +274,7 @@ void operator delete[](void * ptr, const std::nothrow_t&) throw() {
|
|||
std::free(ptr);
|
||||
}
|
||||
|
||||
#endif // !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
//#endif // !defined(__has_feature) || !__has_feature(address_sanitizer)
|
||||
|
||||
namespace ledger {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue