From cd39eb53209ee3fa6dc6683992bd2f85ec8bfb0f Mon Sep 17 00:00:00 2001 From: sezero Date: Tue, 11 Sep 2018 19:10:51 +0300 Subject: [PATCH] fx64.h: Watcom 11.0 added "long long" support, adjust accordingly. The legacy Watcom <= 10.5 code of 3dfx didn't compile using OpenWatcom. --- swlibs/fxmisc/fx64.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/swlibs/fxmisc/fx64.h b/swlibs/fxmisc/fx64.h index 9900c7c..1655aad 100644 --- a/swlibs/fxmisc/fx64.h +++ b/swlibs/fxmisc/fx64.h @@ -30,7 +30,15 @@ ** WATCOMC */ #if defined(__WATCOMC__) +#if (__WATCOMC__ < 1100) #define FX_BIT64(n) ( FX_SHL64( i64_one, n ) ) +#else + typedef signed long long FxI64; + typedef unsigned long long FxU64; + #define NATIVE_64_SUPPORT 1 + #define FX_MASK64(n) (0xFFFFFFFFFFFFFFFFLL >> (64-(n))) + #define FX_BIT64(n) (((FxI64)1) << (n)) +#endif /* ** GCC */