From ddb6116df9d9271826605613ab8c743e03b6bdc5 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Mon, 19 Aug 2019 01:20:40 +0300 Subject: [PATCH] Add bits and endian for Watcom compiler --- c/dtypes.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/c/dtypes.h b/c/dtypes.h index c0cf9a7..272a931 100644 --- a/c/dtypes.h +++ b/c/dtypes.h @@ -13,12 +13,21 @@ We assume the LP64 convention for 64-bit platforms. */ -#undef BITS32 // TODO -#define BITS64 // TODO +#undef BITS32 +#undef BITS64 #ifdef __WATCOMC__ typedef float float_t; typedef double double_t; +#define __ORDER_BIG_ENDIAN__ 4321 +#define __ORDER_LITTLE_ENDIAN__ 1234 +#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ +#define BITS32 +#endif + +#ifndef __WATCOMC__ +#define BITS64 +#endif #endif #ifdef __GNUC__