Allow simulators to be built on Linux
authorMichael Meissner <gnu@the-meissners.org>
Fri, 25 Apr 1997 19:29:31 +0000 (19:29 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Fri, 25 Apr 1997 19:29:31 +0000 (19:29 +0000)
sim/common/sim-n-bits.h

index bb787794b036fb4da85d5164dd6930cb68b512fa..85184e734620af7e8e75e8327f97624a75f94652 100644 (file)
 
 #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)