mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
LibC: Move size_t, ptrdiff_t and NULL to stddef.h. #POSIX
This commit is contained in:
parent
cbd858544d
commit
ab9db3a717
2 changed files with 11 additions and 8 deletions
|
@ -2,3 +2,12 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define NULL nullptr
|
||||
#else
|
||||
#define NULL ((void*)0)
|
||||
#endif
|
||||
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue