From 564e2a3fe9e4ab89e76d10015beae33bd2950faf Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 25 Apr 1997 19:29:31 +0000 Subject: [PATCH] Allow simulators to be built on Linux --- sim/common/sim-n-bits.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sim/common/sim-n-bits.h b/sim/common/sim-n-bits.h index bb787794b0..85184e7346 100644 --- a/sim/common/sim-n-bits.h +++ b/sim/common/sim-n-bits.h @@ -26,6 +26,13 @@ #include "sim-xcat.h" +#ifdef __STDC__ +/* If signed were defined to be say __signed (ie, some versions of Linux), + then the signedN macro would not work correctly. If we have a standard + compiler, we have signed. */ +#undef signed +#endif + /* NOTE: See end of file for #undef */ #define unsignedN XCONCAT2(unsigned,N) #define signedN XCONCAT2(signed,N) -- 2.34.1