diff --git a/H/YapTerm.h b/H/YapTerm.h index d9e7f1fb5..4a3356e60 100644 --- a/H/YapTerm.h +++ b/H/YapTerm.h @@ -101,10 +101,19 @@ typedef void *Atom; #endif + typedef UInt CELL; +#if HAVE_STDINT_H +#include + +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)