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.
This commit is contained in:
Andreas Kling 2019-11-29 14:53:14 +01:00
parent 680fd3999e
commit 422e5166f2
Notes: sideshowbarker 2024-07-19 11:02:10 +09:00

View file

@ -1,5 +1,7 @@
#pragma once
#ifndef KERNEL
#include <sys/cdefs.h>
#include <sys/types.h>
@ -11,3 +13,5 @@
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef __SIZE_TYPE__ size_t;
#endif