diff options
Diffstat (limited to 'Kernel/StdLib.h')
-rw-r--r-- | Kernel/StdLib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/StdLib.h b/Kernel/StdLib.h index d45d33872e..b420e0dc44 100644 --- a/Kernel/StdLib.h +++ b/Kernel/StdLib.h @@ -51,6 +51,8 @@ void const* memmem(void const* haystack, size_t, void const* needle, size_t); [[nodiscard]] inline u16 htons(u16 w) { return (w & 0xff) << 8 | ((w >> 8) & 0xff); } } +#define offsetof(type, member) __builtin_offsetof(type, member) + template<typename T> [[nodiscard]] inline ErrorOr<void> copy_from_user(T* dest, T const* src) { |