From 422e5166f2f8872f21b62f9bbf378cdd9fddce5f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 29 Nov 2019 14:53:14 +0100 Subject: [PATCH] LibC: Tolerate stddef.h being included from the kernel This can get pulled in by , but we don't want it pulling in more stuff from LibC. --- Libraries/LibC/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/LibC/stddef.h b/Libraries/LibC/stddef.h index 73f82c1489..e8d5c8fbde 100644 --- a/Libraries/LibC/stddef.h +++ b/Libraries/LibC/stddef.h @@ -1,5 +1,7 @@ #pragma once +#ifndef KERNEL + #include #include @@ -11,3 +13,5 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __SIZE_TYPE__ size_t; + +#endif