On 10/21/11 12:30, Brian Paul wrote:
How about doing something like:

#if __GNUC__ * 10 + __GNUC_MINOR__ < 34

I find that a bit easier to follow.

The X.Org headers I'm more familiar with do something very much like
that, just with a little protection against the possibility of gcc
someday hitting double-digit releases (4.10 for instance):

#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)

It looks like mesa already has that style used as well, in
src/gallium/include/pipe/p_config.h & include/KHR/khrplatform.h.

I'll submit a new patch to adopt this style for the mesa_bitcount
checks.

--
        -Alan Coopersmith-        alan.coopersm...@oracle.com
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to