[PATCH] Add and use __INTTYPES_EXP()

Corinna Vinschen vinschen@redhat.com
Fri Nov 23 10:22:00 GMT 2012


On Nov 22 10:37, Sebastian Huber wrote:
> 2011-11-22  Sebastian Huber <sebastian.huber@embedded-brains.de>
> 
> 	* libc/include/inttypes.h: Add and use __INTTYPES_EXP().
> [...]
> diff --git a/newlib/libc/include/inttypes.h b/newlib/libc/include/inttypes.h
> index f3943cb..4ab1bd5 100644
> --- a/newlib/libc/include/inttypes.h
> +++ b/newlib/libc/include/inttypes.h
> @@ -17,6 +17,14 @@
>  #define __need_wchar_t
>  #include <stddef.h>
>  
> +#if defined(__GNUC__) && (__GNUC__ >= 3 ) \
> +  && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ > 2 ) 

Please use __GNUC_PREREQ, as in stdint.h


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Newlib mailing list