cosmetic changes
This commit is contained in:
1 parent
fd0b9009de
commit
1c64143fa6
1 file changed
+12
-4
+12
-4
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user