Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-03 14:44:18 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-03 14:44:18 +0300
commit2895b8b5024af0b63eb4363ca3fb6e9a932994a1 (patch)
tree26f89ba25493b6e8405fcd15c00dc2e386dce8fa /winsup/cygwin/include/asm
parented296a47279daf8af30812a6084ab4839c3d879d (diff)
* 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/asm')
-rw-r--r--winsup/cygwin/include/asm/byteorder.h3
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)) : \