Try to build Golded+ in MacOSX

This commit is contained in:
Stas Degteff 2006-01-14 22:11:56 +00:00
parent 66831e6a38
commit ae3736fc28
2 changed files with 5 additions and 3 deletions

View File

@ -138,10 +138,12 @@ typedef unsigned char uint8_t;
typedef unsigned short uint16_t; typedef unsigned short uint16_t;
typedef unsigned int uint32_t; typedef unsigned int uint32_t;
#if !defined(__APPLE__)
typedef signed char int8_t; typedef signed char int8_t;
typedef signed short int16_t; typedef signed short int16_t;
typedef signed int int32_t; typedef signed int int32_t;
#endif #endif
#endif
typedef uint8_t byte; typedef uint8_t byte;
typedef uint16_t word; typedef uint16_t word;

View File

@ -37,7 +37,7 @@
/* FreeBSD's malloc.h is deprecated, it drops a warning and */ /* FreeBSD's malloc.h is deprecated, it drops a warning and */
/* #includes <stdlib.h>, which is already here. */ /* #includes <stdlib.h>, which is already here. */
#ifndef __FreeBSD__ #if !defined(__FreeBSD__) && !defined(__APPLE__)
#include <malloc.h> #include <malloc.h>
#endif #endif
@ -448,10 +448,10 @@ void lzh_reconst(void)
for (k = j - 1; f < lzh_freq[k]; k--); for (k = j - 1; f < lzh_freq[k]; k--);
k++; k++;
l = (j - k) * 2; l = (j - k) * 2;
/* movmem() is Turbo-C dependent /* movmem() is Turbo-C dependent
rewritten to memmove() by Kenji */ rewritten to memmove() by Kenji */
/* movmem(&lzh_freq[k], &lzh_freq[k + 1], l); */ /* movmem(&lzh_freq[k], &lzh_freq[k + 1], l); */
(void)memmove(lzh_freq+k+1,lzh_freq+k, l); (void)memmove(lzh_freq+k+1,lzh_freq+k, l);
lzh_freq[k] = f; lzh_freq[k] = f;