[libcxx] r227263 - Ensure __has_feature is defined in test/support/count_new.hpp

Eric Fiselier eric at efcs.ca
Tue Jan 27 15:03:39 PST 2015


Author: ericwf
Date: Tue Jan 27 17:03:38 2015
New Revision: 227263

URL: http://llvm.org/viewvc/llvm-project?rev=227263&view=rev
Log:
Ensure __has_feature is defined in test/support/count_new.hpp

Modified:
    libcxx/trunk/test/support/count_new.hpp

Modified: libcxx/trunk/test/support/count_new.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/count_new.hpp?rev=227263&r1=227262&r2=227263&view=diff
==============================================================================
--- libcxx/trunk/test/support/count_new.hpp (original)
+++ libcxx/trunk/test/support/count_new.hpp Tue Jan 27 17:03:38 2015
@@ -5,6 +5,10 @@
 # include <cassert>
 # include <new>
 
+#ifndef __has_feature
+#  define __has_feature(x)
+#endif
+
 #if  __has_feature(address_sanitizer) \
   || __has_feature(memory_sanitizer)
 #define DISABLE_NEW_COUNT





More information about the cfe-commits mailing list