Comment 4 for bug 587158

Revision history for this message
Per Øyvind Karlsen (proyvind) wrote : Re: [Bug 587158] Re: code should not use c99 features

2010/8/4 Per Øyvind Karlsen <email address hidden>:
> 2010/8/4 Anders F Björklund <email address hidden>:
>> liblzma is also written in C99, so you need to backport that too.
liblzma is written in a bit of both gnu89 & gnu99, so this might be
needed (ie it doesn't use stdbool.h, declaration within looops (ie.
'(int i =0; i++; i <10), etc. for being able to built without c99.

It does at least build fine using gnu89 with gcc, and I think it would
be pretty similar situation for msvc. Also if you look at the headers,
there's various gcc macros and defines to determine c standard version
used, and for non-c99, various variables, macros etc. are declared for
achieving compatibility..
>>
>> --
>> code should not use c99 features
>> https://bugs.launchpad.net/bugs/587158
>> You received this bug notification because you are the registrant for
>> PylibLZMA.
>>
>> Status in PylibLZMA: New
>>
>> Bug description:
>> msvc compilers don't implement c99 features:
>> - local variables must appear at the start of a block
>> - expressions with { } are forbidden
>> - array initialization with { } is only accepted at the declaration point.
>>
>>
>>
>