ladybird/AK/kmalloc.h
2018-10-17 10:57:23 +02:00

20 lines
291 B
C

#pragma once
#ifdef SERENITY_KERNEL
#include <Kernel/kmalloc.h>
#else
#include <new>
#include "Types.h"
extern "C" {
void* kcalloc(size_t nmemb, size_t size);
void* kmalloc(size_t size) __attribute__ ((malloc));
void kfree(void* ptr);
void* krealloc(void* ptr, size_t size);
}
#endif