ifdefs needed to find malloc.h on the mac.

This commit is contained in:
brianray 2010-02-28 03:43:32 +00:00
parent 190360ea6a
commit 27ce2abc7b
2 changed files with 8 additions and 0 deletions

View File

@ -25,7 +25,11 @@
#include "large.h" #include "large.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#ifdef __APPLE__
#include <sys/malloc.h>
#else
#include <malloc.h> #include <malloc.h>
#endif
void horiz(struct zint_symbol *symbol, int row_no, int full) void horiz(struct zint_symbol *symbol, int row_no, int full)
{ {

View File

@ -26,7 +26,11 @@
#include "reedsol.h" #include "reedsol.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef __APPLE__
#include <sys/malloc.h>
#else
#include <malloc.h> #include <malloc.h>
#endif
int maxi_codeword[144]; int maxi_codeword[144];