Use autoconf to check for endian.h.

This commit is contained in:
Reece H. Dunn
2017-01-15 09:51:44 +00:00
parent 39bbd48144
commit 58c655abae
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -85,6 +85,7 @@ dnl ================================================================
dnl library checks.
dnl ================================================================
AC_CHECK_HEADERS([endian.h]) dnl Linux
AC_CHECK_HEADERS([fcntl.h]) dnl POSIX
AC_CHECK_HEADERS([getopt.h]) dnl POSIX
AC_CHECK_HEADERS([locale.h]) dnl C89
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef ENDIAN_H_COMPAT_SHIM
#define ENDIAN_H_COMPAT_SHIM
#if defined(__linux__) || defined(__CYGWIN__) || defined(__EMSCRIPTEN__)
#if defined(HAVE_ENDIAN_H)
# pragma GCC system_header // Silence "warning: #include_next is a GCC extension"
# include_next <endian.h>
#elif defined(__APPLE__)