From: phantomjinx <pha...@us...> - 2012-06-11 21:39:38
|
commit f6a1f020d78c5e26b1dfe519a5d0ccbc8c4b7b38 Author: phantomjinx <p.g...@ph...> Date: Mon Jun 11 22:38:26 2012 +0100 Avoid Creating new uint definitions * Include stdint.h in AP_commons.h instead * Allows compilation of freebsd * Thanks to Matteo <mfv.debian at gmail.com> for the investigation and patch libs/atomic-parsley/AP_commons.h | 31 +------------------------------ 1 files changed, 1 insertions(+), 30 deletions(-) --- diff --git a/libs/atomic-parsley/AP_commons.h b/libs/atomic-parsley/AP_commons.h index a9f061b..ddd13c7 100644 --- a/libs/atomic-parsley/AP_commons.h +++ b/libs/atomic-parsley/AP_commons.h @@ -20,36 +20,7 @@ //==================================================================// #include <sys/types.h> #include <sys/stat.h> - -#ifndef _UINT8_T -#define _UINT8_T -typedef unsigned char uint8_t; -#endif /*_UINT8_T */ - -#ifndef _UINT16_T -#define _UINT16_T -typedef unsigned short uint16_t; -#endif /* _UINT16_T */ - -#ifndef _UINT32_T -#ifndef __uint32_t_defined -typedef unsigned int uint32_t; -#endif -#endif /*_UINT32_T */ - -#ifndef _UINT64_T -#define _UINT64_T -#if defined (_MSC_VER) -typedef unsigned __int64 uint64_t; -#else -typedef unsigned long long uint64_t; -#endif /* _MSC_VER */ -#endif /* _UINT64_T */ - -#ifndef _INT16_T -#define _INT16_T -typedef short int16_t; -#endif /* _INT16_T */ +#include <stdint.h> #if defined (__ppc__) || defined (__ppc64__) #define SWAP16(x) (x) |