2004-05-07 Pascal Obry <obry@act-europe.fr>

* include/winsock.h (IN_CLASSA): Fix macro.
	* include/winsock2.h (IN_CLASSA): Fix macro.
This commit is contained in:
Danny Smith 2004-05-06 20:54:50 +00:00
parent 14017d5313
commit bbf3df482a
3 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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