Commit 543aa5ca authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

HAS_FEATURE fix

Summary: Foolishly #defined __has_feature when it wasn't and let it leak, but something later must have been relying on something similar. This replaces the uses with FOLLY_HAS_FEATURE.

Reviewed By: yfeldblum, magedm

Differential Revision: D6829724

fbshipit-source-id: 40635dd67135316f27be2aa2a6b2d579dbf843e1
parent dc96624a
...@@ -29,13 +29,10 @@ ...@@ -29,13 +29,10 @@
#endif #endif
#ifndef HAZPTR_TC #ifndef HAZPTR_TC
#if !defined(__has_feature)
#define __has_feature(A) 1
#endif
// If we are on an IOS device or simulator and don't have thread_local support // If we are on an IOS device or simulator and don't have thread_local support
// then do not use thread caching // then do not use thread caching
#if FOLLY_MOBILE && defined(__APPLE__) && !__has_feature(cxx_thread_local) #if FOLLY_MOBILE && defined(__APPLE__) && !FOLLY_HAS_FEATURE(cxx_thread_local)
#define HAZPTR_TC false #define HAZPTR_TC false
#else #else
#define HAZPTR_TC true #define HAZPTR_TC true
...@@ -49,7 +46,7 @@ ...@@ -49,7 +46,7 @@
#ifndef HAZPTR_PRIV #ifndef HAZPTR_PRIV
// If we are on an IOS device or simulator and don't have thread_local support // If we are on an IOS device or simulator and don't have thread_local support
// then do not use private // then do not use private
#if FOLLY_MOBILE && defined(__APPLE__) && !__has_feature(cxx_thread_local) #if FOLLY_MOBILE && defined(__APPLE__) && !FOLLY_HAS_FEATURE(cxx_thread_local)
#define HAZPTR_PRIV false #define HAZPTR_PRIV false
#else #else
#define HAZPTR_PRIV true #define HAZPTR_PRIV true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment