On Thu, 21 Jul 2011, Rainer Orth wrote:

> diff --git a/gcc/system.h b/gcc/system.h
> --- a/gcc/system.h
> +++ b/gcc/system.h
> @@ -24,6 +24,10 @@ along with GCC; see the file COPYING3.  
>  #ifndef GCC_SYSTEM_H
>  #define GCC_SYSTEM_H
>  
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +

I don't think it's right to surround any system header includes with 
extern "C".  If a particular declaration in system.h needs to be extern 
"C", surround only that declaration (though preferably such declarations 
might go in other headers with their own extern "C").

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to