Revert "Revert "Cleanup transitive includes in the legacy inlines.""
This reverts commit 9cb8639b18bc90dab461b4709607083301c9f6fc.
Fixed all the broken builds that were reported to me before this was
reverted.
Test: make checkbuild # kikey960, marlin, aosp_arm64; master and aosp
diff --git a/libc/include/android/legacy_stdlib_inlines.h b/libc/include/android/legacy_stdlib_inlines.h
index e26e5f2..34a968c 100644
--- a/libc/include/android/legacy_stdlib_inlines.h
+++ b/libc/include/android/legacy_stdlib_inlines.h
@@ -29,13 +29,14 @@
#ifndef _ANDROID_LEGACY_STDLIB_INLINES_H_
#define _ANDROID_LEGACY_STDLIB_INLINES_H_
-#include <errno.h>
-#include <float.h>
-#include <stdlib.h>
#include <sys/cdefs.h>
#if __ANDROID_API__ < __ANDROID_API_L__
+#include <errno.h>
+#include <float.h>
+#include <stdlib.h>
+
__BEGIN_DECLS
static __inline float strtof(const char* nptr, char** endptr) {