Check for std::this_thread::sleep_for.
[folly.git] / folly / Portability.h
index 608c1d9b873d4d1aaab712c94d4722c289cf2011..d017400e3a4d020f72e23c77817666330248bae9 100644 (file)
@@ -121,7 +121,7 @@ struct MaxAlign { char c; } __attribute__((aligned));
 // It turns out that GNU libstdc++ and LLVM libc++ differ on how they implement
 // the 'std' namespace; the latter uses inline namepsaces. Wrap this decision
 // up in a macro to make forward-declarations easier.
-#ifdef _LIBCPP_VERSION
+#if FOLLY_USE_LIBCPP
 #define FOLLY_NAMESPACE_STD_BEGIN     _LIBCPP_BEGIN_NAMESPACE_STD
 #define FOLLY_NAMESPACE_STD_END       _LIBCPP_END_NAMESPACE_STD
 #else