From: Michael Meissner Date: Fri, 25 Apr 1997 19:29:31 +0000 (+0000) Subject: Allow simulators to be built on Linux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=564e2a3fe9e4ab89e76d10015beae33bd2950faf;p=binutils-gdb.git Allow simulators to be built on Linux --- diff --git a/sim/common/sim-n-bits.h b/sim/common/sim-n-bits.h index bb787794b03..85184e73462 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)