mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
Everywhere: Remove string.h include from AK/Traits.h and resolve fallout
A lot of places were relying on AK/Traits.h to give it strnlen, memcmp, memcpy and other related declarations. In the quest to remove inclusion of LibC headers from Kernel files, deal with all the fallout of this included-everywhere header including less things.
This commit is contained in:
parent
0420736143
commit
7ab37ee22c
14 changed files with 35 additions and 18 deletions
11
AK/Time.h
11
AK/Time.h
|
@ -11,12 +11,11 @@
|
|||
#include <AK/Platform.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
// Kernel and Userspace pull in the definitions from different places.
|
||||
// Avoid trying to figure out which one.
|
||||
struct timeval;
|
||||
struct timespec;
|
||||
|
||||
#if defined(AK_OS_WINDOWS)
|
||||
#if defined(AK_OS_SERENITY) && defined(KERNEL)
|
||||
# include <Kernel/API/POSIX/sys/time.h>
|
||||
# include <Kernel/API/POSIX/time.h>
|
||||
#else
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue