Changed other instances of malloc.h to stdlib.h for OSX compat

This commit is contained in:
Meredith L. Patterson 2012-11-14 14:05:25 -05:00
parent fa6497b9f0
commit 8163b3981d
4 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
#include "hammer.h" #include "hammer.h"
#include "allocator.h" #include "allocator.h"
#include <assert.h> #include <assert.h>
#include <malloc.h> #include <stdlib.h>
#include <string.h> #include <string.h>
// {{{ counted arrays // {{{ counted arrays

View file

@ -223,7 +223,7 @@ void h_hashtable_del(HHashTable* ht, void* key);
void h_hashtable_free(HHashTable* ht); void h_hashtable_free(HHashTable* ht);
#if 0 #if 0
#include <malloc.h> #include <stdlib.h>
#define h_arena_malloc(a, s) malloc(s) #define h_arena_malloc(a, s) malloc(s)
#endif #endif

View file

@ -20,7 +20,7 @@
#include <string.h> #include <string.h>
#include "hammer.h" #include "hammer.h"
#include "internal.h" #include "internal.h"
#include <malloc.h> #include <stdlib.h>
typedef struct pp_state { typedef struct pp_state {
int delta; int delta;

View file

@ -1,4 +1,4 @@
#include <malloc.h> #include <stdlib.h>
#include "internal.h" #include "internal.h"
static void* system_alloc(HAllocator *allocator, size_t size) { static void* system_alloc(HAllocator *allocator, size_t size) {