Thanks for answering! :-)
Thomas
Takashi Ono wrote:
> Hi Thomas,
>
> Including the delcaration between
>
> #pragma pack(push,1)
>
> and
>
> #pragma pack(pop)
>
> will work with MS compilers, I think.
>
> In message "[dev] Windows compiler question...",
> Thomas Lange - Sun Germany - ham02 - Hamburg wrote...
> >
> >Hi all,
> >
> >The following sniplet comes from a GNU C/C++ compilable source.
> >It seems to emulate w_char's on it's own. And thus I was told the whole
> >structure needs to be packed into 16 bit.
> >
> >typedef struct __attribute__ ((packed)) {
> > unsigned char l;
> > unsigned char h;
> >} w_char;
> >
> >However the above code does not compile with the wntmsci12 windows
> >compiler because '((packed))' is unknown to that one.
> >
> >Anyone knows how to do this properly with the Windows compiler?
> >
> >
> >Thanks in advance!
> >Thomas
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> Takashi Ono ([EMAIL PROTECTED])
>
> ----
> Takashi Ono(HK Freak)
> mailto:[EMAIL PROTECTED] or [EMAIL PROTECTED]
> (Personal Address, checked every morning/evening and holidays)
> mailto:[EMAIL PROTECTED]
> (Address for business, checked every working days)
> http://www.hkfreak.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]