This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor doc error...
- To: Andres Felipe Vargas <avargas at teletulua dot com dot co>
- Subject: Re: preprocessor doc error...
- From: Bruce Korb <bkorb at cruzio dot com>
- Date: Mon, 22 Jan 2001 11:29:33 -0800
- CC: gcc at gcc dot gnu dot org, bkorb at cruzio dot com
- References: <3A6B462C.DD76D28@teletulua.com.co>
Apparently in the docs for the preprocessor there is an example
of testing for a version after 2.6.2 that actually tests for
after 2.6.3. The fragment below shows how the test appears
(Aparece) and how it should be (debe ser):
Andres Felipe Vargas wrote:
> Existe un error en la documentacion del pre-procesador
> cuando se da un ejemplo de la macro standar del
> sistema __GNUC_PATCHLEVEL__
>
> Aparece:
>
> (( __GNUC__ > 2 ) || ( __GNUC__ == 2 && __GNUC_MINOR__
> > 6 ) || ( __GNUC__ == 2 && __GNUC_MINOR__ == 6 && __GNU_PATCHLEVEL__
> > 3))
>
> Y debe ser :
>
> (( __GNUC__ > 2 ) || ( __GNUC__ == 2 && __GNUC_MINOR__
> > 6 ) || ( __GNUC__ == 2 && __GNUC_MINOR__ == 6 && __GNU_PATCHLEVEL__
> > 2))
>
> Porque sino solo compilaria en caso de ser GCC 2.6.4 o
> mayor y no GCC 2.6.3 que es una version que incorpora
> la solucion al problema de la version 2.6.2
>
> - --
> - -----------------------------------------------
> ) | (
> | ' ' '| Andres Felipe Vargas Valencia
> | O O | Programador de Computadores
> | / | Tulua (V) - Colombia
> | ` |
> \`-4 / avargas@teletulua.com.co
> `--4 www.teletulua.com.co/~avargas