Changed other instances of malloc.h to stdlib.h for OSX compat
This commit is contained in:
parent
fa6497b9f0
commit
8163b3981d
4 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#include "hammer.h"
|
||||
#include "allocator.h"
|
||||
#include <assert.h>
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
// {{{ counted arrays
|
||||
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ void h_hashtable_del(HHashTable* ht, void* key);
|
|||
void h_hashtable_free(HHashTable* ht);
|
||||
|
||||
#if 0
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
#define h_arena_malloc(a, s) malloc(s)
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#include <string.h>
|
||||
#include "hammer.h"
|
||||
#include "internal.h"
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct pp_state {
|
||||
int delta;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
#include "internal.h"
|
||||
|
||||
static void* system_alloc(HAllocator *allocator, size_t size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue