Add folly::Expected, an alternative to exceptions for non-throwing APIs that can...
[folly.git] / folly / Portability.h
index 2d3ec417c3f32210679d692e3c7e7d35871b93a2..56dc7c95c2a59c1994f2cde035518a1f512c8374 100644 (file)
@@ -354,3 +354,12 @@ using namespace FOLLY_GFLAGS_NAMESPACE;
 // we will take the next one.
 #define FOLLY_STATIC_CTOR_PRIORITY_MAX __attribute__((__init_priority__(102)))
 #endif
+
+namespace folly {
+
+#if defined(__linux__) && !FOLLY_MOBILE
+constexpr auto kIsLinux = true;
+#else
+constexpr auto kIsLinux = false;
+#endif
+}