From 1c64143fa606382dcae149f7b57d9804df2f8b0a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 20 Sep 1991 15:21:56 +0000 Subject: [PATCH] cosmetic changes --- src/ca/net_convert.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/ca/net_convert.h b/src/ca/net_convert.h index e6d9e5deb..1f0a80de3 100644 --- a/src/ca/net_convert.h +++ b/src/ca/net_convert.h @@ -27,8 +27,12 @@ # define htons(SHORT)\ ((unsigned short)(((short)(SHORT))<<8 | ((unsigned short)(SHORT))>>8 )) #else -# define ntohs(SHORT) (SHORT) -# define htons(SHORT) (SHORT) +# ifndef ntohs +# define ntohs(SHORT) (SHORT) +# endif +# ifndef htons +# define htons(SHORT) (SHORT) +# endif #endif @@ -48,8 +52,12 @@ (((long)(LONG))&0x0000ff00)<<8\ ) #else -# define ntohl(LONG) (LONG) -# define htonl(LONG) (LONG) +# ifndef ntohl +# define ntohl(LONG) (LONG) +# endif +# ifndef htonl +# define htonl(LONG) (LONG) +# endif #endif