Don't rely on transitively included headers

One must explicitly include what it need.
time.h for clock_gettime
float.h for FLT_MAX
string.h for memset

Bug: 37629934
Test: build

Merged-In: I1030a9c9ff3c2de4c5febabc3064d6976e9535cf
Change-Id: I5a8fd84a10aeeab2258f78a0ac992de0afa33d00
This commit is contained in:
Jiyong Park 2017-09-06 12:16:25 +09:00
parent 7069aa8fa8
commit 439eb0f241
3 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <float.h>
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include <sys/types.h> #include <sys/types.h>

View file

@ -17,6 +17,7 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <malloc.h> #include <malloc.h>
#include <string.h>
#include <cutils/atomic.h> #include <cutils/atomic.h>
#include <log/log.h> #include <log/log.h>

View file

@ -21,7 +21,7 @@
#include <malloc.h> #include <malloc.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <sys/time.h> #include <time.h>
#include <log/log.h> #include <log/log.h>