Hi Rene,

Ok, if that one is already fixed and it works just this simple I'll do
it as in the fix.
(We don't want two different fixes for the same issue.)

Thanks!
Thomas


> Thomas Lange - Sun Germany - ham02 - Hamburg wrote:
>> 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;
> 
> ah, hunspellexternal and the ARM buildfix :-)
> 
>> 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?
> 
> As a data point: that fix was incorporated in hunspell 1.2.2 (which is the
> current hunspell version compared to our old 1.1.12) and I just looked how it
> was done there:
> 
> #ifdef WIN32
> typedef struct {
> #else
> typedef struct __attribute__ ((packed)) {
> #endif
>     unsigned char l;
>     unsigned char h;
> } w_char;
> 
> so it's just not done for Windows.
> 
> Regards,
> 
> Rene
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to