diff options
author | hartwork <hartwork@bc0edfbe-c936-4687-b64d-f70bc3985e72> | 2009-03-06 22:31:28 +0300 |
---|---|---|
committer | hartwork <hartwork@bc0edfbe-c936-4687-b64d-f70bc3985e72> | 2009-03-06 22:31:28 +0300 |
commit | 4c11b89d2d92b39ca98e6d182f7c43ef2a703733 (patch) | |
tree | 8ba54cd8602bc42ad75bf742b5aa23162ecaa9d6 | |
parent | 086e1a7fe9d0ee710b6ea319386c4d76b0e80793 (diff) |
Refactor type definitions: Pull out shared part
git-svn-id: svn://svn.code.sf.net/p/bs2b/code/trunk/libbs2b@59 bc0edfbe-c936-4687-b64d-f70bc3985e72
-rw-r--r-- | src/bs2b.h | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -29,21 +29,19 @@ #include "bs2bversion.h" #if HAVE_STDINT_H -#include <stdint.h> -#elif UINT_MAX == 0xffff /* 16 bit compiler */ +# include <stdint.h> +#else typedef signed char int8_t; -typedef signed short int16_t; -typedef signed long int32_t; typedef unsigned char uint8_t; +typedef signed short int16_t; typedef unsigned short uint16_t; +# if UINT_MAX == 0xffff /* 16 bit compiler */ +typedef signed long int32_t; typedef unsigned long uint32_t; -#else /* UINT_MAX != 0xffff */ /* 32/64 bit compiler */ -typedef signed char int8_t; -typedef signed short int16_t; +# else /* UINT_MAX != 0xffff */ /* 32/64 bit compiler */ typedef signed int int32_t; -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; typedef unsigned int uint32_t; +# endif #endif /* HAVE_STDINT_H */ typedef struct |