Hello!
All this things will not work because MS compiler can change packing
options only with #pragma.
Yuri
Richard Russon wrote:
>Hi Anton,
>
>
>
>>>__PACKED__
>>>typedef enum {
>>> ABC = 4,
>>>} RICH __attriute__ ((packed__));
>>>__UNPACKED__
>>>
>>>
>>Having thought about this some more, it is not that bad. But we should
>>take it a bit further to make it cleaner.
>>
>>
>
>OK, good.
>
>
>
>>PACKED_TYPEDEF struct {
>> blah = 4,
>>} mystructname PACKED_TYPEDEF_END;
>>
>>
>
>I'll have a think. I don't want to mess up the code unnessarily.
>
>
>
>>PACKED_TYPEDEF enum {
>> blah = 4,
>>} myenumname PACKED_TYPEDEF_END;
>>
>>
>
>The enums will take a bit of thought. We can't put them directly into
>the structs.
>
>
>
>>And then have the compat.h header file deal with defining...
>>That makes it even nicer than the __attribute__ strangeness and
>>the pragma strangeness that gcc and msvc have respectively.
>>
>>
>
>Yeah, that's sounding good.
>
>
>
>>So basically feel free and do something along those lines if you wish...
>>
>>
>
>Cheers,
> FlatCap (Rich)
> nt...@fl...
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Linux-NTFS-Dev mailing list
>Lin...@li...
>https://lists.sourceforge.net/lists/listinfo/linux-ntfs-dev
>
>
|