This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] sh: Add "extern "C"" to __set_fpscr function
2010/9/28 Mike Frysinger <vapier@gentoo.org>:
> On Tuesday, September 28, 2010 00:50:28 Nobuhiro Iwamatsu wrote:
>> When user compiles program that used _FPU_SETCW in sh4 in C++,
>> become the error.
>> Because 'extern "C"' is not set to __set_fpscr.
>
> oops, sorry about that
>
>> +#ifdef __cplusplus
>> +extern "C" {
>> +#endif
>
> #include <features.h>
> __BEGIN_DECLS
>
>> +#ifdef __cplusplus
>> +}
>> +#endif ?/* C++ */
>
> __END_DECLS
Thanks. I will resend patch.