OSDN Git Service

* decContext.h: Add extern "C" if compiling with C++.
[pf3gnuchains/gcc-fork.git] / libdecnumber / decNumber.h
index 73a2fd0..05ccb9f 100644 (file)
@@ -108,6 +108,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
   #include "decNumberSymbols.h"
 
+  #ifdef __cplusplus
+  extern "C" {
+  #endif
+
   /* Conversions                                                     */
   decNumber * decNumberFromInt32(decNumber *, int32_t);
   decNumber * decNumberFromUInt32(decNumber *, uint32_t);
@@ -192,4 +196,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
                                    && (((dn)->bits&DECSPECIAL)==0))
   #define decNumberRadix(dn)      (10)
 
+  #ifdef __cplusplus
+  }
+  #endif
+
 #endif