Only include endian.h if present on system.

pull/1/head
Christian Beier 8 years ago
parent ddabcb67a6
commit cada820645

@ -81,12 +81,12 @@
#endif #endif
#endif #endif
#if !defined(_WIN32) #if LIBVNCSERVER_HAVE_ENDIAN_H
# include <endian.h> # include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN # if __BYTE_ORDER == __BIG_ENDIAN
# define LIBVNCSERVER_WORDS_BIGENDIAN 1 # define LIBVNCSERVER_WORDS_BIGENDIAN 1
# endif # endif
#endif /* !_WIN32 */ #endif
/* MS compilers don't have strncasecmp */ /* MS compilers don't have strncasecmp */
#ifdef _MSC_VER #ifdef _MSC_VER

Loading…
Cancel
Save