]> granicus.if.org Git - onig/commitdiff
Remove HAVE_LIMITS_H
authorPeter Kokot <peterkokot@gmail.com>
Wed, 5 Sep 2018 00:05:32 +0000 (02:05 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Wed, 5 Sep 2018 00:05:32 +0000 (02:05 +0200)
The `<limits.h>` header file is part of the standard C89 headers [1] and
on current systems there is no need to do a manual check anymore if
header is present.

Build systems checked for the presence of the header file and defined
the `HAVE_LIMITS_H` symbol:
- Autoconf in configure.a [2]
- cmake in CMakeLists.txt

Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.4
[2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4

CMakeLists.txt
configure.ac
src/config.h.cmake.in
src/config.h.win32
src/config.h.win64
src/config.h.windows.in
src/regint.h

index 6aae87be579158c50343d55a2cdf827f2157d64d..04d8ae88b0db2f437aba0f24c19c7596e558788a 100644 (file)
@@ -39,7 +39,6 @@ check_include_files(stdint.h    HAVE_STDINT_H)
 check_include_files(stdlib.h    HAVE_STDLIB_H)
 check_include_files(strings.h   HAVE_STRINGS_H)
 check_include_files(string.h    HAVE_STRING_H)
-check_include_files(limits.h    HAVE_LIMITS_H)
 check_include_files(sys/times.h HAVE_SYS_TIMES_H)
 check_include_files(sys/time.h  HAVE_SYS_TIME_H)
 check_include_files(sys/types.h HAVE_SYS_TYPES_H)
index fef00cd7873aa281a48a7ae764365e1b4d61fe49..5c9a086bd783ae490dd9feaf1873f7d2fc4f2bba 100644 (file)
@@ -50,7 +50,7 @@ dnl Checks for libraries.
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(stdlib.h string.h strings.h limits.h sys/time.h unistd.h sys/times.h)
+AC_CHECK_HEADERS(stdlib.h string.h strings.h sys/time.h unistd.h sys/times.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_CHECK_SIZEOF(int, 4)
index b59cc8d62f0a75270ba0c3ec9888994286b6cd9b..f562a6bb4a4735db7295010e5f379cb7e11b5099 100644 (file)
@@ -31,9 +31,6 @@
 /* Define to 1 if you have the <string.h> header file. */
 #cmakedefine HAVE_STRING_H  ${HAVE_STRING_H}
 
-/* Define to 1 if you have the <limits.h> header file. */
-#cmakedefine HAVE_LIMITS_H ${HAVE_LIMITS_H}
-
 /* Define to 1 if you have the <sys/times.h> header file. */
 #cmakedefine HAVE_SYS_TIMES_H  ${HAVE_SYS_TIMES_H}
 
index 12609dfc9d8539a350d112d767febe22544a9511..244dcc3e5aef70723ff1e4fd9a8007b6109de67f 100644 (file)
@@ -29,7 +29,6 @@
 #define STDC_HEADERS 1\r
 #define HAVE_STDLIB_H 1\r
 #define HAVE_STRING_H 1\r
-#define HAVE_LIMITS_H 1\r
 #define HAVE_FCNTL_H 1\r
 #define HAVE_SYS_UTIME_H 1\r
 #define HAVE_MEMORY_H 1\r
index e8920860aaa592fce0ead1074ab8e2a249c71d16..5e89aece8d84ca01853b59c64da8427740038bb6 100644 (file)
@@ -29,7 +29,6 @@
 #define STDC_HEADERS 1\r
 #define HAVE_STDLIB_H 1\r
 #define HAVE_STRING_H 1\r
-#define HAVE_LIMITS_H 1\r
 #define HAVE_FCNTL_H 1\r
 #define HAVE_SYS_UTIME_H 1\r
 #define HAVE_MEMORY_H 1\r
index 57fb42620d2535d6e7a25d3ab74d2297c24d96a9..31ccbdbcd67f40af821022aded6611761399831c 100644 (file)
@@ -33,7 +33,6 @@
 #define STDC_HEADERS 1\r
 #define HAVE_STDLIB_H 1\r
 #define HAVE_STRING_H 1\r
-#define HAVE_LIMITS_H 1\r
 #define HAVE_FCNTL_H 1\r
 #define HAVE_SYS_UTIME_H 1\r
 #define HAVE_MEMORY_H 1\r
index c3d1ee15129a554c51fe6a8de0cf3f7c9541db67..8fa210bcfe4fdca3c0d72560cf7ef0ebe829ffe4 100644 (file)
 
 
 #include <stddef.h>
-
-#ifdef HAVE_LIMITS_H
 #include <limits.h>
-#endif
 
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>