[dpdk-dev] [PATCH v2 4/6] net/pcap: add libpcap wrappers
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Thu Mar 4 00:03:43 CET 2021
2021-03-03 19:30, Ferruh Yigit:
> On 3/3/2021 6:19 PM, Dmitry Kozlyuk wrote:
> > 2021-03-03 16:47, Ferruh Yigit:
> >> On 3/3/2021 4:32 PM, Dmitry Kozlyuk wrote:
[...]
> > +#pragma push_macro("s_addr")
> > +#ifdef s_addr
> > +#undef s_addr
> > +#endif
>
> I guess this needs to be as following, in case this header included before the
> windows header:
>
> #ifdef s_addr
> #pragma push_macro("s_addr")
> #undef s_addr
> #endif
It actually works both ways.
I used #ifdef inside so that #pragma pop_macro doesn't need its own guard.
More information about the dev
mailing list