Add bits and endian for Watcom compiler
This commit is contained in:
parent
a6fd653000
commit
ddb6116df9
13
c/dtypes.h
13
c/dtypes.h
|
@ -13,12 +13,21 @@
|
||||||
We assume the LP64 convention for 64-bit platforms.
|
We assume the LP64 convention for 64-bit platforms.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef BITS32 // TODO
|
#undef BITS32
|
||||||
#define BITS64 // TODO
|
#undef BITS64
|
||||||
|
|
||||||
#ifdef __WATCOMC__
|
#ifdef __WATCOMC__
|
||||||
typedef float float_t;
|
typedef float float_t;
|
||||||
typedef double double_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
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
Loading…
Reference in New Issue