From: Brian Paul <brian.paul@tu...> - 2004-09-29 15:54:30
Ian Romanick wrote:
> Ronny V. Vindenes wrote:
>> Which C standard is Mesa/DRI supposed to follow? Some of the old linux
>> targets say ansi others C99.
> My personal opinion is that additions in the C99 spec are useful enough
> and common enough to rely on. At the very least, DRI code (i.e., the
> stuff in src/mesa/drivers/dri) can rely on C99. For all practical
> purposes, it only builds on systems with fairly recent GCC, so this is
> safe. The rest of the code may need to only rely on C89. I'll defer to
> Brian's opinion on that.
> If we want to decide that core Mesa code can only use C89 features, then
> we should go in and fix the places that already rely on either C99 or
> GCC-specific features.
Other than 'long long' in some of the texture compression code, I'm
not aware of any C99 features being used in the Mesa core.
I know some people use Mesa on legacy platforms and they might not
have C99 compilers available to them.