aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/eglibc/files/sh4_set_fpscr_2.12.patch
blob: 19cccc0dc1189073599338b5836ad28ee6ed91b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/sysdeps/sh/sh4/fpu/fpu_control.h b/sysdeps/sh/sh4/fpu/fpu_control.h
index d1be46d..3ea37d3 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
@@ -46,7 +46,14 @@ typedef unsigned int fpu_control_t;
 
 #if defined __GNUC__
 /* GCC provides this function.  */
+/* Allow the use in C++ code.  */  
+#ifdef __cplusplus
+extern "C" {
+#endif
 extern void __set_fpscr (unsigned long);
+#ifdef __cplusplus
+}
+#endif  /* C++ */
 #define _FPU_SETCW(cw) __set_fpscr ((cw))
 #else
 #define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))
-- 
1.7.1