]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libquadmath/55473 (quadmath.h should have extern "C" for C++ users)
authorShakthi Kannan <shakthimaan@gmail.com>
Thu, 7 Mar 2013 07:53:10 +0000 (07:53 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Mar 2013 07:53:10 +0000 (08:53 +0100)
PR libquadmath/55473
* quadmath.h: Add 'extern "C"' block for C++ use.

From-SVN: r196517

libquadmath/ChangeLog
libquadmath/quadmath.h

index 15c0739319d3720a94ec57bd8bac9de903289890..f04c70180b5d3c4a0791007f74f38233e9ba6a95 100644 (file)
@@ -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
index 863fe440b23040b204d47ff5ddee444a2476b25a..aa9ef51b39194b854c300d480bf32ba7e0fc96fc 100644 (file)
@@ -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