Commit 27197728 authored by Eric Niebler's avatar Eric Niebler Committed by Facebook Github Bot

Fix coroutine feature test macro on MSVC

Summary: Coroutines are only available on MSVC when the /await compiler switch was passed, in which case the `_RESUMABLE_FUNCTIONS_SUPPORTED` macro is defined.

Reviewed By: Orvid

Differential Revision: D5837303

fbshipit-source-id: af3349646e8875e3eac1bc3bbf47203f41f0bbde
parent 3597c587
......@@ -426,6 +426,6 @@ constexpr auto kMscVer = 0;
#define FOLLY_CPP14_CONSTEXPR inline
#endif
#if __cpp_coroutines >= 201703L || _MSC_VER
#if __cpp_coroutines >= 201703L || (_MSC_VER && _RESUMABLE_FUNCTIONS_SUPPORTED)
#define FOLLY_HAS_COROUTINES 1
#endif
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