diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-05-06 20:54:50 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2004-05-06 20:54:50 +0000 |
commit | bbf3df482a7e4812955a1aa0ca9117d036fe12ba (patch) | |
tree | 5c26146ce606bba38b1c6a0a6a67d9e2936ebd8c /winsup/w32api | |
parent | 14017d5313c8b28ba3be4a66585643a5f9d311a0 (diff) | |
download | newlib-bbf3df482a7e4812955a1aa0ca9117d036fe12ba.zip newlib-bbf3df482a7e4812955a1aa0ca9117d036fe12ba.tar.gz newlib-bbf3df482a7e4812955a1aa0ca9117d036fe12ba.tar.bz2 |
2004-05-07 Pascal Obry <obry@act-europe.fr>
* include/winsock.h (IN_CLASSA): Fix macro.
* include/winsock2.h (IN_CLASSA): Fix macro.
Diffstat (limited to 'winsup/w32api')
-rw-r--r-- | winsup/w32api/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/w32api/include/winsock.h | 2 | ||||
-rw-r--r-- | winsup/w32api/include/winsock2.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 009748e..0c16268 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2004-05-07 Pascal Obry <obry@act-europe.fr> + + * include/winsock.h (IN_CLASSA): Fix macro. + * include/winsock2.h (IN_CLASSA): Fix macro. + 2004-04-29 Bart Oldeman <bartoldeman@users.sourceforge.net> * include/objbase.h (STGOPTIONS): Correct pwcsTemplateFile type. diff --git a/winsup/w32api/include/winsock.h b/winsup/w32api/include/winsock.h index 36eb713..d99d84c 100644 --- a/winsup/w32api/include/winsock.h +++ b/winsup/w32api/include/winsock.h @@ -202,7 +202,7 @@ struct in_addr { #define s_impno S_un.S_un_b.s_b4 #define s_lh S_un.S_un_b.s_b3 }; -#define IN_CLASSA(i) ((long)(i)&0x80000000) +#define IN_CLASSA(i) (((long)(i)&0x80000000) == 0) #define IN_CLASSA_NET 0xff000000 #define IN_CLASSA_NSHIFT 24 #define IN_CLASSA_HOST 0x00ffffff diff --git a/winsup/w32api/include/winsock2.h b/winsup/w32api/include/winsock2.h index 82a921c..2129d51 100644 --- a/winsup/w32api/include/winsock2.h +++ b/winsup/w32api/include/winsock2.h @@ -225,7 +225,7 @@ struct in_addr { #define s_impno S_un.S_un_b.s_b4 #define s_lh S_un.S_un_b.s_b3 }; -#define IN_CLASSA(i) ((long)(i)&0x80000000) +#define IN_CLASSA(i) (((long)(i)&0x80000000) == 0) #define IN_CLASSA_NET 0xff000000 #define IN_CLASSA_NSHIFT 24 #define IN_CLASSA_HOST 0x00ffffff |