This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Make ip.h and tcp.h work under -fnative-struct or -mms-bitfields
- From: Wu Yongwei <adah at netstd dot com>
- To: cygwin-patches <cygwin-patches at cygwin dot com>
- Date: Tue, 12 Nov 2002 11:03:55 +0800
- Subject: Re: Make ip.h and tcp.h work under -fnative-struct or -mms-bitfields
- Organization: Kingnet Security, Inc.
Sorry for my ignorance and noise, but I still want to ask what problems
could occur if I use u_char instead of u_int to denote bit fields.
Any answer is appreciated.
(Of course I would like to have a header file working across all my
Windows compilers. Others may appreciate it too.)
Best regards,
Wu Yongwei
--- Original Message from Christopher Faylor ---
Danny's suggestion is correct. The rest of the header files which
accomodate this are probably using __attribute__((packed)) . The
argument that the header works ok for you on MSVC is a non-issue for cygwin.
cgf