Attributes of functions

Nicolas Baradakis nbk at sitadelle.com
Sat Sep 17 18:24:00 CEST 2005


Paul TBBle Hampson wrote:

> I'm only working with gcc, so I don't mind if we use gcc extensions
> myself...

They are indeed gcc extensions, but the #defines make the code compile
with other compilers.

> Are the attributes likely to vary between compilers we care about?
> (as opposed to simply present or absent)
> 
> If so, then the latter is neccessary... If not, the former is
> sufficient, and prolly cleaner.

Both versions work with non-gcc compiler. My question is mainly about
the preferred coding style.

-- 
Nicolas Baradakis




More information about the Freeradius-Devel mailing list