summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-29 14:53:14 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-29 14:53:35 +0100
commit422e5166f2f8872f21b62f9bbf378cdd9fddce5f (patch)
tree73154cba6d29e19abd55f84102afb007015e899a
parent680fd3999efc9caa1698304e157cbef1308b48df (diff)
downloadserenity-422e5166f2f8872f21b62f9bbf378cdd9fddce5f.zip
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.
-rw-r--r--Libraries/LibC/stddef.h4
1 files changed, 4 insertions, 0 deletions
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 <sys/cdefs.h>
#include <sys/types.h>
@@ -11,3 +13,5 @@
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef __SIZE_TYPE__ size_t;
+
+#endif