Feature test macros overhaul: Cygwin headers

Use proper internal macros for BSD and GNU.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz
2016-03-14 21:24:29 -05:00
parent 396942b0b5
commit 3237fb31b3
3 changed files with 9 additions and 6 deletions

View File

@ -12,6 +12,7 @@ details. */
#define _ENDIAN_H_
#include <sys/config.h>
#include <sys/cdefs.h>
#include <bits/endian.h>
/*#ifdef __USE_BSD*/
@ -27,7 +28,7 @@ details. */
# define __LONG_LONG_PAIR(HI, LO) HI, LO
#endif
#if /*defined __USE_BSD ||*/ ! defined _POSIX_SOURCE
#if __BSD_VISIBLE
#include <byteswap.h>
@ -71,7 +72,7 @@ details. */
#endif /*__BYTE_ORDER == __BIG_ENDIAN*/
#endif /*__USE_BSD || !_POSIX_SOURCE*/
#endif /*__BSD_VISIBLE*/
#endif /*_ENDIAN_H_*/