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