MSTcpIP.h不允许使用的类型 [英] Type Is Not Allowed with MSTcpIP.h
本文介绍了MSTcpIP.h不允许使用的类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在头文件中遇到错误. MSTcpIP.h
类型不允许.... I_NET_IS_ALIGNED零件
IN_ADDR Ipv4Address; if (!INET_IS_ALIGNED(Address, IN_ADDR)) { Ipv4Address = *(CONST IN_ADDR UNALIGNED *)Address; Address = (CONST UCHAR *) &Ipv4Address;
解决方案
确保在调用宏之前已经定义了Address
和IN_ADDR
.
>
I''m getting an error in a header file. MSTcpIP.h
type not allowed....I_NET_IS_ALIGNED part
IN_ADDR Ipv4Address; if (!INET_IS_ALIGNED(Address, IN_ADDR)) { Ipv4Address = *(CONST IN_ADDR UNALIGNED *)Address; Address = (CONST UCHAR *) &Ipv4Address;
解决方案
Make sure bothAddress
andIN_ADDR
have been defined before the call to the macro.
这篇关于MSTcpIP.h不允许使用的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文