This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make ip.h and tcp.h work under -fnative-struct or -mms-bitfields


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]