ladybird/Libraries/LibC/stddef.h
Andreas Kling 422e5166f2 LibC: Tolerate stddef.h being included from the kernel
This can get pulled in by <cxxabi.h>, but we don't want it pulling in
more stuff from LibC.
2019-11-29 14:53:35 +01:00

18 lines
237 B
C

#pragma once
#ifndef KERNEL
#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;
#endif