[GRASS5] What's holding 5.3.0 release?

Glynn Clements glynn.clements at virgin.net
Sat Jan 31 09:07:03 EST 2004


Hamish wrote:

> I think the best way to fix it is as Laura suggested, to use the
> shortened include names if gcc version>=3.2, and in all other cases (and
> compilers) use full <name.h>. Someone with gcc 3.0 might tell us if it
> includes <ostream> so we can get the minor version correct?

gcc 3.0.3 has <ostream>.

> #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)

This should probably be either:

#if !defined(__GNUC__) || __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)

or:

#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))

depending upon whether we want other compilers to use <ostream> or
<ostream.h>.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list