mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix MODE=tiny build
This commit is contained in:
parent
c8c81af0c7
commit
906bd06a5a
5 changed files with 10 additions and 3 deletions
|
@ -19,6 +19,8 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "third_party/dlmalloc/dlmalloc.h"
|
||||
|
||||
__static_yoink("free");
|
||||
|
||||
/**
|
||||
* Allocates n * itemsize bytes, initialized to zero.
|
||||
*
|
||||
|
@ -31,4 +33,3 @@
|
|||
void *calloc(size_t n, size_t itemsize) {
|
||||
return dlcalloc(n, itemsize);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "third_party/dlmalloc/dlmalloc.h"
|
||||
|
||||
__static_yoink("free");
|
||||
|
||||
/**
|
||||
* Allocates uninitialized memory.
|
||||
*
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "third_party/dlmalloc/dlmalloc.h"
|
||||
|
||||
__static_yoink("free");
|
||||
|
||||
/**
|
||||
* Allocates aligned memory.
|
||||
*
|
||||
|
@ -35,4 +37,3 @@
|
|||
void *memalign(size_t align, size_t bytes) {
|
||||
return dlmemalign(align, bytes);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "third_party/dlmalloc/dlmalloc.h"
|
||||
|
||||
__static_yoink("free");
|
||||
|
||||
/**
|
||||
* Allocates / resizes / frees memory, e.g.
|
||||
*
|
||||
|
@ -60,4 +62,3 @@
|
|||
void *realloc(void *p, size_t n) {
|
||||
return dlrealloc(p, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/intrin/weaken.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/stdio/internal.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue