summaryrefslogtreecommitdiff
path: root/libquadmath/quadmath.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-07 07:53:10 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-07 07:53:10 +0000
commita841e2226a7c23f0de975787cc3d1aa8f0ad48b4 (patch)
tree979d3f01c97a27678253fb26edc4ffd8b3277419 /libquadmath/quadmath.h
parent93cfdb51ff37415b1f8133ebf6a07c41cfefac64 (diff)
downloadgcc-a841e2226a7c23f0de975787cc3d1aa8f0ad48b4.tar.gz
PR libquadmath/55473
* quadmath.h: Add 'extern "C"' block for C++ use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196517 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath/quadmath.h')
-rw-r--r--libquadmath/quadmath.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libquadmath/quadmath.h b/libquadmath/quadmath.h
index 863fe440b23..aa9ef51b391 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