]> git.saurik.com Git - bison.git/commitdiff
* src/system.h: Rely on HAVE_LIMITS_H.
authorAkim Demaille <akim@epita.fr>
Wed, 10 Apr 2002 17:13:58 +0000 (17:13 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 10 Apr 2002 17:13:58 +0000 (17:13 +0000)
Suggested by Paul Eggert.

ChangeLog
src/system.h

index f4d5d46c3d8106ae5520eb7c082c90e31c70b5c4..bd7a356be4933ea1e83073e65b45139ab0f7c557 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-10  Akim Demaille  <akim@epita.fr>
+
+       * src/system.h: Rely on HAVE_LIMITS_H.
+       Suggested by Paul Eggert.
+
 2002-04-09  Akim Demaille  <akim@epita.fr>
 
        * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
index 45427449e4f34f96c7f7644d19e0cfba9692d85a..6dd83bcfa97a1757ee96bc3b9cc8640299c906ee 100644 (file)
@@ -89,8 +89,15 @@ char *alloca ();
 # endif
 #endif
 
-/* FIXME: Autoconfiscate. */
-#include <limits.h>
+#if HAVE_LIMITS_H
+# include <limits.h>
+#endif
+#ifndef SHRT_MIN
+# define SHRT_MIN (-32768)
+#endif
+#ifndef SHRT_MAX
+# define SHRT_MAX 32767
+#endif
 
 # include "xalloc.h"