aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2010-10-01 19:40:36 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-01 19:40:36 -0400
commitcf7a1eb81d3eb37e3dc2523f8b0ecccfe0ba8713 (patch)
treecea2b845fba16a6b752470627f9b27c3f82a2c07 /sysdeps
parentb8b4863d78bf26b39918fc753b03ed98ef262903 (diff)
downloadglibc-cf7a1eb81d3eb37e3dc2523f8b0ecccfe0ba8713.tar
glibc-cf7a1eb81d3eb37e3dc2523f8b0ecccfe0ba8713.tar.gz
glibc-cf7a1eb81d3eb37e3dc2523f8b0ecccfe0ba8713.tar.bz2
glibc-cf7a1eb81d3eb37e3dc2523f8b0ecccfe0ba8713.zip
sh: Add "extern "C"" to __set_fpscr function
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/sh/sh4/fpu/fpu_control.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/sh/sh4/fpu/fpu_control.h b/sysdeps/sh/sh4/fpu/fpu_control.h
index d1be46d12f..ae50070519 100644
--- a/sysdeps/sh/sh4/fpu/fpu_control.h
+++ b/sysdeps/sh/sh4/fpu/fpu_control.h
@@ -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 */