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...
|