diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-03-03 11:44:18 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-03-03 11:44:18 +0000 |
commit | 2895b8b5024af0b63eb4363ca3fb6e9a932994a1 (patch) | |
tree | 26f89ba25493b6e8405fcd15c00dc2e386dce8fa /winsup/cygwin/include | |
parent | ed296a47279daf8af30812a6084ab4839c3d879d (diff) | |
download | cygnal-2895b8b5024af0b63eb4363ca3fb6e9a932994a1.tar.gz cygnal-2895b8b5024af0b63eb4363ca3fb6e9a932994a1.tar.bz2 cygnal-2895b8b5024af0b63eb4363ca3fb6e9a932994a1.zip |
* net.cc: Include asm/byteorder.h.
(htonl): Move to end of file. Add comment to explain why. Align
definition to POSIX. Use related macro from asm/byteorder.h.
(ntohl): Ditto.
(htons): Ditto.
(ntohs): Ditto.
* include/asm/byteorder.h: Revert previous patch.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/asm/byteorder.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/include/asm/byteorder.h b/winsup/cygwin/include/asm/byteorder.h index 3f59f7039..b656f814b 100644 --- a/winsup/cygwin/include/asm/byteorder.h +++ b/winsup/cygwin/include/asm/byteorder.h @@ -70,8 +70,7 @@ __ntohs(uint16_t x) #define __constant_htonl(x) __constant_ntohl(x) #define __constant_htons(x) __constant_ntohs(x) -#if defined (__OPTIMIZE__) && !defined (__NO_INLINE__) \ - && !defined (__INSIDE_CYGWIN_NET__) +#if defined (__OPTIMIZE__) && !defined (__NO_INLINE__) # define ntohl(x) \ (__builtin_constant_p((long)(x)) ? \ __constant_ntohl((x)) : \ |