From: Akim Demaille Date: Wed, 10 Apr 2002 17:13:58 +0000 (+0000) Subject: * src/system.h: Rely on HAVE_LIMITS_H. X-Git-Tag: BISON-1_49a~43 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/fecc10cd9566cfd5dee3c9bada3ebe52de7a30bc * src/system.h: Rely on HAVE_LIMITS_H. Suggested by Paul Eggert. --- diff --git a/ChangeLog b/ChangeLog index f4d5d46c..bd7a356b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-10 Akim Demaille + + * src/system.h: Rely on HAVE_LIMITS_H. + Suggested by Paul Eggert. + 2002-04-09 Akim Demaille * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the diff --git a/src/system.h b/src/system.h index 45427449..6dd83bcf 100644 --- a/src/system.h +++ b/src/system.h @@ -89,8 +89,15 @@ char *alloca (); # endif #endif -/* FIXME: Autoconfiscate. */ -#include +#if HAVE_LIMITS_H +# include +#endif +#ifndef SHRT_MIN +# define SHRT_MIN (-32768) +#endif +#ifndef SHRT_MAX +# define SHRT_MAX 32767 +#endif # include "xalloc.h"