ladybird/AK/kmalloc.h

27 lines
348 B
C
Raw Normal View History

#pragma once
#include "Compiler.h"
2018-10-22 12:06:22 +00:00
#ifdef SERENITY
#ifdef USERLAND
#include <LibC/stdlib.h>
#else
2018-10-17 08:55:43 +00:00
#include <Kernel/kmalloc.h>
#endif
2018-10-17 08:55:43 +00:00
#else
#include <new>
#include "Types.h"
extern "C" {
void* kcalloc(size_t nmemb, size_t size);
void* kmalloc(size_t size) MALLOC_ATTR;
void kfree(void* ptr);
void* krealloc(void* ptr, size_t size);
}
2018-10-17 08:55:43 +00:00
#endif