mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
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:
parent
680fd3999e
commit
422e5166f2
Notes:
sideshowbarker
2024-07-19 11:02:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/422e5166f2f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue