diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-09-05 22:35:09 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2018-09-06 00:30:15 -0400 |
commit | d81a1383d71f3bc17b83c5bd4de5cbb7e160e061 (patch) | |
tree | 9ce1364abf3cecaad671796afd72a05eb7d4c153 | |
parent | 1e7f93922fb3adf9f131d7e94aa13386062ffe11 (diff) | |
download | libgd-d81a1383d71f3bc17b83c5bd4de5cbb7e160e061.tar.gz |
Remove HAVE_LIMITS_H
The `<limits.h>` header file is part of the standard C89 headers [1] and
on current systems there is no need to manually check if header is
present anymore.
Since the libgd requires at least C89 or greater, the `HAVE_LIMITS_H`
symbol defined by Autoconf in configure.ac [2], and Cmake build system
files can be removed and simplifed.
Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
-rw-r--r-- | VMS/CONFIGURE.COM | 6 | ||||
-rw-r--r-- | cmake/modules/AC_HEADER_STDC.cmake | 1 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/config.h.cmake | 3 | ||||
-rw-r--r-- | src/gd_intern.h | 3 | ||||
-rw-r--r-- | windows/msys/Makefile | 2 |
6 files changed, 1 insertions, 15 deletions
diff --git a/VMS/CONFIGURE.COM b/VMS/CONFIGURE.COM index a16e021..a0f2e71 100644 --- a/VMS/CONFIGURE.COM +++ b/VMS/CONFIGURE.COM @@ -889,12 +889,6 @@ $COPY SYS$INPUT [.SRC]CONFIG.H /* Define to 1 if you have the <libpng/png.h> header file. */ /* #undef HAVE_LIBPNG_PNG_H */ - - -/* Define to 1 if you have the <limits.h> header file. */ -//#define HAVE_LIMITS_H 1 - - /* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1 diff --git a/cmake/modules/AC_HEADER_STDC.cmake b/cmake/modules/AC_HEADER_STDC.cmake index 3f43daa..6d34272 100644 --- a/cmake/modules/AC_HEADER_STDC.cmake +++ b/cmake/modules/AC_HEADER_STDC.cmake @@ -2,7 +2,6 @@ check_include_files(dirent.h HAVE_DIRENT_H) check_include_files(inttypes.h HAVE_INTTYPES_H) -check_include_files(limits.h HAVE_LIMITS_H) check_include_files(stddef.h HAVE_STDDEF_H) check_include_files(stdint.h HAVE_STDINT_H) check_include_files(stdlib.h HAVE_STDLIB_H) diff --git a/configure.ac b/configure.ac index db5db52..7036bf3 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,6 @@ AC_HEADER_STDC AC_CHECK_HEADERS_ONCE(m4_flatten([ dirent.h inttypes.h - limits.h stddef.h stdint.h stdlib.h diff --git a/src/config.h.cmake b/src/config.h.cmake index ece37e3..6173030 100644 --- a/src/config.h.cmake +++ b/src/config.h.cmake @@ -60,9 +60,6 @@ /* Define if you have zlib */ #cmakedefine HAVE_LIBZ -/* Define to 1 if you have the <limits.h> header file. */ -#cmakedefine HAVE_LIMITS_H - /* Define to 1 if you have the <memory.h> header file. */ #cmakedefine HAVE_MEMORY_H diff --git a/src/gd_intern.h b/src/gd_intern.h index 414a759..3bf1fa8 100644 --- a/src/gd_intern.h +++ b/src/gd_intern.h @@ -1,10 +1,7 @@ #ifndef GD_INTERN_H #define GD_INTERN_H -#ifdef HAVE_LIMITS_H #include <limits.h> -#endif - #ifndef MAXPATHLEN # ifdef PATH_MAX diff --git a/windows/msys/Makefile b/windows/msys/Makefile index c502d80..43bb886 100644 --- a/windows/msys/Makefile +++ b/windows/msys/Makefile @@ -8,7 +8,7 @@ LIBVER=3.0.1 # Misc. config flags. CDEFS=-DHAVE_ICONV -DHAVE_ICONV_H \ --DHAVE_ICONV_T_DEF -DHAVE_INTTYPES_H -DHAVE_LIMITS_H -DHAVE_STDDEF_H \ +-DHAVE_ICONV_T_DEF -DHAVE_INTTYPES_H -DHAVE_STDDEF_H \ -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_VISIBILITY -DICONV_CONST # GnuWin32 libs should all be installed in one place. |