aboutsummaryrefslogtreecommitdiff
path: root/libdecnumber/decContext.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-06-01 05:28:42 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-06-01 05:28:42 +0000
commit6863c0f0d1b5341d517571a00f511170296fb305 (patch)
treef028afdea12fb78bc6a465af6be09bc6bc49c844 /libdecnumber/decContext.h
parent5ac69a8037f6c26bd7b4202509eab0f01c664fa5 (diff)
downloadgcc-6863c0f0d1b5341d517571a00f511170296fb305.zip
gcc-6863c0f0d1b5341d517571a00f511170296fb305.tar.gz
gcc-6863c0f0d1b5341d517571a00f511170296fb305.tar.bz2
decContext.h: Add extern "C" if compiling with C++.
* decContext.h: Add extern "C" if compiling with C++. * decDPD.h: Likewise. * decNumber.h: Likewise. * dpd/decimal32.h: Likewise. * dpd/decimal64.h: Likewise. * dpd/decimal128.h: Likewise. From-SVN: r148030
Diffstat (limited to 'libdecnumber/decContext.h')
-rw-r--r--libdecnumber/decContext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdecnumber/decContext.h b/libdecnumber/decContext.h
index d6c75f1..ae0ca07 100644
--- a/libdecnumber/decContext.h
+++ b/libdecnumber/decContext.h
@@ -245,6 +245,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "decContextSymbols.h"
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
extern decContext * decContextClearStatus(decContext *, uint32_t);
extern decContext * decContextDefault(decContext *, int32_t);
extern enum rounding decContextGetRounding(decContext *);
@@ -262,4 +266,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
extern uint32_t decContextTestStatus(decContext *, uint32_t);
extern decContext * decContextZeroStatus(decContext *);
+ #ifdef __cplusplus
+ }
+ #endif
+
#endif