[cfe-commits] [PATCH] Problem with clang's limits.h
    Argiris Kirtzidis 
    akyrtzi at gmail.com
       
    Thu Feb 12 14:52:18 PST 2009
    
    
  
Mike Stump wrote:
> On Feb 12, 2009, at 12:33 PM, Argiris Kirtzidis wrote:
>> On my linux system, limits.h #include_nexts limits.h again, trying to 
>> get the GCC one.
>> So this is what happens with clang's limits.h
>
> The comment seems like it might be wrong, but I think the patch is 
> probably fine.
This is from system's limits.h:
>  /* Get the compiler's limits.h, which defines almost all the ISO 
> constants.
>
>     We put this #include_next outside the double inclusion check because
>     it should be possible to include this file more than once and 
> still get
>     the definitions from gcc's header.  */
> #if defined __GNUC__ && !defined _GCC_LIMITS_H_
> /* `_GCC_LIMITS_H_' is what GCC's file defines.  */
> # include_next <limits.h>
> #endif
>
    
    
More information about the cfe-commits
mailing list