]> sourceware.org Git - glibc.git/commitdiff
sh: Add "extern "C"" to __set_fpscr function
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 1 Oct 2010 23:40:36 +0000 (19:40 -0400)
committerUlrich Drepper <drepper@gmail.com>
Fri, 1 Oct 2010 23:40:36 +0000 (19:40 -0400)
ChangeLog
sysdeps/sh/sh4/fpu/fpu_control.h

index 62eb2ff130a302f69f413877b2ffb93dc827ca76..a49e12a0ebde38219a8df561e70e86182747f3e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
+
+       * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
+       __set_fpscr.
+
 2010-09-30  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
index d1be46d12fcec7e1c4feb9e10c1b4e3102eaf527..ae50070519aa7fecfb45e0f80e5b56de85f22a64 100644 (file)
@@ -1,5 +1,5 @@
 /* FPU control word definitions.  SH version.
-   Copyright (C) 1999, 2000, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2009, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,6 +20,8 @@
 #ifndef _FPU_CONTROL_H
 #define _FPU_CONTROL_H
 
+#include <features.h>
+
 /* masking of interrupts */
 #define _FPU_MASK_VM   0x0800  /* Invalid operation */
 #define _FPU_MASK_ZM   0x0400  /* Division by zero  */
@@ -45,6 +47,8 @@ typedef unsigned int fpu_control_t;
 #define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
 
 #if defined __GNUC__
+__BEGIN_DECLS
+
 /* GCC provides this function.  */
 extern void __set_fpscr (unsigned long);
 #define _FPU_SETCW(cw) __set_fpscr ((cw))
@@ -55,4 +59,5 @@ extern void __set_fpscr (unsigned long);
 /* Default control word set at startup.         */
 extern fpu_control_t __fpu_control;
 
+__END_DECLS
 #endif /* _FPU_CONTROL_H */
This page took 0.048401 seconds and 5 git commands to generate.