mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
LibC: Remove #ifdef KERNEL guard from stddef.h
We aren't including this from the Kernel anywhere anymore, so let's simplify the file.
This commit is contained in:
parent
5b33381875
commit
d73a143004
1 changed files with 7 additions and 11 deletions
|
@ -6,19 +6,15 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||||
|
|
||||||
#ifndef KERNEL
|
#ifdef __cplusplus
|
||||||
|
# define NULL nullptr
|
||||||
# include <sys/cdefs.h>
|
#else
|
||||||
|
# define NULL ((void*)0)
|
||||||
# ifdef __cplusplus
|
#endif
|
||||||
# define NULL nullptr
|
|
||||||
# else
|
|
||||||
# define NULL ((void*)0)
|
|
||||||
# endif
|
|
||||||
|
|
||||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||||
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue