make sure BITS32 and 16 are what they say they are

This commit is contained in:
Vitor Santos Costa 2013-06-22 00:24:53 -05:00
parent 84c1803102
commit 4f8fad43df
1 changed files with 10 additions and 1 deletions

View File

@ -101,10 +101,19 @@ typedef void *Atom;
#endif
typedef UInt CELL;
#if HAVE_STDINT_H
#include <stdint.h>
typedef uint16_t BITS16;
typedef int16_t SBITS16;
typedef uint32_t BITS32;
#else
typedef UShort BITS16;
typedef Short SBITS16;
typedef Short SBITS16;
typedef UInt BITS32;
#endif
#define WordSize sizeof(BITS16)
#define CellSize sizeof(CELL)