summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-09-06 16:24:45 +0200
committerMike Frysinger <vapier@gmail.com>2018-09-08 03:29:27 -0400
commit5dc2dd8b49520c9c8a59798a03553a7e88d94072 (patch)
tree298c7f23a0e75e31825165f78adf5a7681143235 /cmake
parentd8ead0b8e0470a70f4d67fbc391b24471cdd405a (diff)
downloadlibgd-5dc2dd8b49520c9c8a59798a03553a7e88d94072.tar.gz
Remove HAVE_STDLIB_H
The C89 and later standard defines the `<stdlib.h>` header as part of the standard headers [1] and on current systems it is always present and the `HAVE_STDLIB_H` symbol can be removed. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AC_HEADER_STDC.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmake/modules/AC_HEADER_STDC.cmake b/cmake/modules/AC_HEADER_STDC.cmake
index 17e2789..fafc76b 100644
--- a/cmake/modules/AC_HEADER_STDC.cmake
+++ b/cmake/modules/AC_HEADER_STDC.cmake
@@ -3,7 +3,6 @@
check_include_files(dirent.h HAVE_DIRENT_H)
check_include_files(inttypes.h HAVE_INTTYPES_H)
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(unistd.h HAVE_UNISTD_H)