From fecc10cd9566cfd5dee3c9bada3ebe52de7a30bc Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 10 Apr 2002 17:13:58 +0000 Subject: [PATCH] * src/system.h: Rely on HAVE_LIMITS_H. Suggested by Paul Eggert. --- ChangeLog | 5 +++++ src/system.h | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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" -- 2.45.2