[vorbis-dev] segfault cause found
Michael Smith
msmith at labyrinth.net.au
Tue Apr 18 21:02:40 PDT 2000
>The obvious fault is me using #ifdef _WIN32 in os.h. Is, perhaps, _MSVC_ or
>somethign like that a better idea?
>
>> #ifndef alloca
>> #if defined(_WIN32) && !defined(__GNUC__)
>> #define alloca(x) (_alloca(x))
>> #endif
>> #endif
>
>Since we're trying to fix it right, it seems like that could trip us up
>eventually too... what do other developers who code for both WIN32/GNU and
>their unholy union do?
>
>Monty
I don't code for both. No really - I try my best to avoid it!
*sigh* - ok, I end up doing windows stuff moderately often anyway.
The MSVC help lists all the predefined macros somewhere. The only one which
looks useful is
_MSC_VER, which gives the compiler version. That should be adequate.
Michael
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
More information about the Vorbis-dev
mailing list