mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
Build LibC and Userland with clang as well.
This commit is contained in:
parent
ebf308d413
commit
4914f3b837
8 changed files with 46 additions and 37 deletions
30
AK/kmalloc.h
30
AK/kmalloc.h
|
@ -27,36 +27,6 @@ void* kmalloc_eternal(size_t) MALLOC_ATTR;
|
|||
|
||||
}
|
||||
|
||||
inline void* operator new(size_t size)
|
||||
{
|
||||
return kmalloc(size);
|
||||
}
|
||||
|
||||
inline void* operator new[](size_t size)
|
||||
{
|
||||
return kmalloc(size);
|
||||
}
|
||||
|
||||
inline void operator delete(void* ptr)
|
||||
{
|
||||
return kfree(ptr);
|
||||
}
|
||||
|
||||
inline void operator delete[](void* ptr)
|
||||
{
|
||||
return kfree(ptr);
|
||||
}
|
||||
|
||||
inline void operator delete(void* ptr, size_t)
|
||||
{
|
||||
return kfree(ptr);
|
||||
}
|
||||
|
||||
inline void operator delete[](void* ptr, size_t)
|
||||
{
|
||||
return kfree(ptr);
|
||||
}
|
||||
|
||||
inline void* operator new(size_t, void* p) { return p; }
|
||||
inline void* operator new[](size_t, void* p) { return p; }
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue