support using co_await with folly::Optional when it is available
[folly.git] / folly / Portability.h
index a180bea41586d3185c8c3483d8b4456077dc4ad9..87be0b29af71e4091979e709c0209a0f473a0f48 100644 (file)
@@ -425,3 +425,7 @@ constexpr auto kMscVer = 0;
 #else
 #define FOLLY_CPP14_CONSTEXPR inline
 #endif
+
+#if __cpp_coroutines >= 201703L || _MSC_VER
+#define FOLLY_HAS_COROUTINES 1
+#endif