This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] sh: Add "extern "C"" to __set_fpscr function
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: iwamatsu at nigauri dot org
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 28 Sep 2010 14:52:14 +0900 (JST)
- Subject: Re: [PATCH v2] sh: Add "extern "C"" to __set_fpscr function
- References: <AANLkTimOZLxzoKZcoCEo5-M4kyXQrfibyyto9ZKD9hRr@mail.gmail.com>
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 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.
>
> 2010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
>
> * sysdeps/sh/sh4/fpu/fpu_control.h:
> Add 'extern "C"' protection to __set_fpscr.
sysdeps/sh/sh4/fpu_control.h has also a typedef and another
declaration. They should be wrapped with in extern "C" too,
shouldn't they?
Regards,
kaz