Merge pull request #8 from maservant/master

Fix missing endian.h error on Cygwin
This commit is contained in:
Lars Boegild Thomsen 2016-12-09 13:53:24 +08:00 committed by GitHub
commit 785faaa9f4
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@
#define le64toh(x) OSSwapLittleToHostInt64(x)
#endif /* __APPLE__ */
#ifdef __linux__
#if defined(__linux__) || defined(__CYGWIN__)
# define _GNU_SOURCE
# include <endian.h>
#endif