aboutsummaryrefslogtreecommitdiff
path: root/libquadmath
diff options
context:
space:
mode:
authorShakthi Kannan <shakthimaan@gmail.com>2013-03-07 07:53:10 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2013-03-07 08:53:10 +0100
commit5709153c3ffa5864540a5024e9c371c5cf10c9b1 (patch)
tree979d3f01c97a27678253fb26edc4ffd8b3277419 /libquadmath
parent17d53ff0acf695a4dd1d0b3891e090f1c1403ebb (diff)
downloadgcc-5709153c3ffa5864540a5024e9c371c5cf10c9b1.zip
gcc-5709153c3ffa5864540a5024e9c371c5cf10c9b1.tar.gz
gcc-5709153c3ffa5864540a5024e9c371c5cf10c9b1.tar.bz2
re PR libquadmath/55473 (quadmath.h should have extern "C" for C++ users)
PR libquadmath/55473 * quadmath.h: Add 'extern "C"' block for C++ use. From-SVN: r196517
Diffstat (limited to 'libquadmath')
-rw-r--r--libquadmath/ChangeLog5
-rw-r--r--libquadmath/quadmath.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog
index 15c0739..f04c701 100644
--- a/libquadmath/ChangeLog
+++ b/libquadmath/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-06 Shakthi Kannan <shakthimaan@gmail.com>
+
+ PR libquadmath/55473
+ * quadmath.h: Add 'extern "C"' block for C++ use.
+
2013-02-19 Jakub Jelinek <jakub@redhat.com>
PR libquadmath/56379
diff --git a/libquadmath/quadmath.h b/libquadmath/quadmath.h
index 863fe44..aa9ef51 100644
--- a/libquadmath/quadmath.h
+++ b/libquadmath/quadmath.h
@@ -23,6 +23,10 @@ Boston, MA 02110-1301, USA. */
#include <stdlib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Define the complex type corresponding to __float128
("_Complex __float128" is not allowed) */
typedef _Complex float __attribute__((mode(TC))) __complex128;
@@ -189,4 +193,8 @@ __quadmath_nth (conjq (__complex128 __z))
return __extension__ ~__z;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif