summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-09-05 01:02:44 +0200
committerMike Frysinger <vapier@gmail.com>2018-09-05 01:39:49 -0400
commit1e7f93922fb3adf9f131d7e94aa13386062ffe11 (patch)
tree7b06263ffa91058586e27c5936e6eeebb4187c90 /cmake
parent96d68e36142a3a6446ca7d1d7f764c0156bb2b1e (diff)
downloadlibgd-1e7f93922fb3adf9f131d7e94aa13386062ffe11.tar.gz
Remove HAVE_ERRNO_H
The `<errno.h>` header file is part of the standard C89 headers [1] and on older systems there needed to be also a manual check if header is present. Since libgd requires at least C89 or greater, the `HAVE_ERRNO_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.3 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
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 d3775ea..3f43daa 100644
--- a/cmake/modules/AC_HEADER_STDC.cmake
+++ b/cmake/modules/AC_HEADER_STDC.cmake
@@ -1,7 +1,6 @@
# Keep in sync with AC_CHECK_HEADERS in configure.ac.
check_include_files(dirent.h HAVE_DIRENT_H)
-check_include_files(errno.h HAVE_ERRNO_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)