Add features to portability/Config.h
authorChristopher Dykes <cdykes@fb.com>
Sun, 20 Mar 2016 18:06:56 +0000 (11:06 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Sun, 20 Mar 2016 18:20:25 +0000 (11:20 -0700)
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
folly/portability/Config.h

index fb01114eddc226e30161ccb23b0cff138ec0a6a8..0eb1e1d81707f6e99fd38cedf36fc71bb1b6b11b 100644 (file)
 
 #include <folly/portability/Config.h>
 
-#if FOLLY_HAVE_FEATURES_H
-#include <features.h>
-#endif
-
 #include <folly/CPortability.h>
 
 #ifdef __APPLE__
index a506f906f3786e11dfdecd610cdd181cd65818f3..eede964183ff7dc1722782a7ef0adeabdb07a604 100755 (executable)
 #ifdef FOLLY_PLATFORM_CONFIG
 #include FOLLY_PLATFORM_CONFIG
 #endif
+
+#if FOLLY_HAVE_FEATURES_H
+#include <features.h>
+#endif
+
+#ifdef __ANDROID__
+#include <android/api-level.h>
+#endif