From d05711c657c2054a9dd6f77f262823541061f094 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Sun, 20 Mar 2016 11:06:56 -0700 Subject: [PATCH] Add features to portability/Config.h Summary: It is perfectly reasonable to need to feature macros when checking configuration, and the configuration is needed to know if features.h exists, so put it in the same file. Reviewed By: yfeldblum Differential Revision: D3072255 fb-gh-sync-id: 0f253dd1fa2f4a95adb11f11c45e6b86ef9c25bc shipit-source-id: 0f253dd1fa2f4a95adb11f11c45e6b86ef9c25bc --- folly/Portability.h | 4 ---- folly/portability/Config.h | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/folly/Portability.h b/folly/Portability.h index fb01114e..0eb1e1d8 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -23,10 +23,6 @@ #include -#if FOLLY_HAVE_FEATURES_H -#include -#endif - #include #ifdef __APPLE__ diff --git a/folly/portability/Config.h b/folly/portability/Config.h index a506f906..eede9641 100755 --- a/folly/portability/Config.h +++ b/folly/portability/Config.h @@ -23,3 +23,11 @@ #ifdef FOLLY_PLATFORM_CONFIG #include FOLLY_PLATFORM_CONFIG #endif + +#if FOLLY_HAVE_FEATURES_H +#include +#endif + +#ifdef __ANDROID__ +#include +#endif -- 2.34.1