Commit 9a1abfca authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Cut FOLLY_HAS_INCLUDE

Summary:
[Folly] Cut `FOLLY_HAS_INCLUDE` now that all supported platforms have it.

MSVC2015 and gcc4.9.1 don't support it, but folly no longer targets them.

Reviewed By: simpkins, Orvid

Differential Revision: D9262258

fbshipit-source-id: e518492acd7c11374ab971b26adb642bce7b19c3
parent 1243c576
...@@ -59,12 +59,6 @@ ...@@ -59,12 +59,6 @@
#define FOLLY_HAS_FEATURE(...) 0 #define FOLLY_HAS_FEATURE(...) 0
#endif #endif
#if defined(__has_include)
#define FOLLY_HAS_INCLUDE(...) __has_include(__VA_ARGS__)
#else
#define FOLLY_HAS_INCLUDE(...) 0
#endif
/* Define a convenience macro to test when address sanitizer is being used /* Define a convenience macro to test when address sanitizer is being used
* across the different compilers (e.g. clang, gcc) */ * across the different compilers (e.g. clang, gcc) */
#if FOLLY_HAS_FEATURE(address_sanitizer) || __SANITIZE_ADDRESS__ #if FOLLY_HAS_FEATURE(address_sanitizer) || __SANITIZE_ADDRESS__
......
...@@ -434,7 +434,7 @@ constexpr auto kCpplibVer = 0; ...@@ -434,7 +434,7 @@ constexpr auto kCpplibVer = 0;
#endif #endif
#endif #endif
#if __cpp_coroutines >= 201703L && FOLLY_HAS_INCLUDE(<experimental/coroutine>) #if __cpp_coroutines >= 201703L && __has_include(<experimental/coroutine>)
#define FOLLY_HAS_COROUTINES 1 #define FOLLY_HAS_COROUTINES 1
#elif _MSC_VER && _RESUMABLE_FUNCTIONS_SUPPORTED #elif _MSC_VER && _RESUMABLE_FUNCTIONS_SUPPORTED
#define FOLLY_HAS_COROUTINES 1 #define FOLLY_HAS_COROUTINES 1
......
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