This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preprocessor doc error...



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]