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 -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__)