This is the mail archive of the
mailing list for the GCC project.
Re: Altivec conditional?
Am Sam, 2002-02-23 um 02.25 schrieb Geoff Keating:
> If you don't want to use autoconf, the way to determine compiler
> capabilities is to key off __GNUC__ and __GNUC_MINOR__ and so on. Of
> course, it's ugly, but presumably you already key off __aix__ and
> __linux__ and __cygwin__ and so on, so what's one more?
No problem with me, I just want to know what to key for. :)
BTW: It's not as nasty as it seems as most of the code is portable, I
just need defines to overwrite generic functions with optimised ones
which means one or two #ifdefs in the whole code per optimised