From a4449da43c00cd5e083a5cbcc368d49fdabc222e Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 27 Jan 2015 23:03:38 +0000 Subject: [PATCH] Ensure __has_feature is defined in test/support/count_new.hpp git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@227263 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/support/count_new.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/support/count_new.hpp b/test/support/count_new.hpp index 937a00b2..72d4bc4f 100644 --- a/test/support/count_new.hpp +++ b/test/support/count_new.hpp @@ -5,6 +5,10 @@ # include # include +#ifndef __has_feature +# define __has_feature(x) +#endif + #if __has_feature(address_sanitizer) \ || __has_feature(memory_sanitizer) #define DISABLE_NEW_COUNT