use HAVE_LIMITS_H for the system header <limits.h>

This commit is contained in:
Vincent Wei
2019-10-31 09:50:09 +08:00
parent 4ea6912024
commit 69eebf37e3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ dnl ========================================================================
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS(sys/types.h sys/time.h termio.h unistd.h math.h locale.h)
AC_CHECK_HEADERS(limits.h math.h locale.h unistd.h termio.h sys/types.h sys/time.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
+1 -1
View File
@@ -1701,7 +1701,7 @@ typedef struct _GAL_Rect {
#endif
/* Commonly used definitions */
#if !defined(__NOUNIX__) || defined (__ECOS__) || defined (__RTEMS__)
#if HAVE_LIMITS_H
#include <limits.h>
#endif