Skip to content

Commit

Permalink
* decContext.h: Add extern "C" if compiling with C++.
Browse files Browse the repository at this point in the history
	* decDPD.h: Likewise.
	* decNumber.h: Likewise.
	* dpd/decimal32.h: Likewise.
	* dpd/decimal64.h: Likewise.
	* dpd/decimal128.h: Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148030 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ian committed Jun 1, 2009
1 parent c4c8f6c commit 3d5f43a
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libdecnumber/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2009-05-31 Ian Lance Taylor <iant@google.com>

* 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.

2009-04-09 Nick Clifton <nickc@redhat.com>

* decRound.c: Change copyright header to refer to version 3 of
Expand Down
8 changes: 8 additions & 0 deletions libdecnumber/decContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand All @@ -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
8 changes: 8 additions & 0 deletions libdecnumber/decDPD.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#if defined(DEC_BCD2DPD) && DEC_BCD2DPD==1 && !defined(DECBCD2DPD)
#define DECBCD2DPD

#ifdef __cplusplus
extern "C" {
#endif

const uint16_t BCD2DPD[2458]={ 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 0, 0, 0, 0, 0, 0, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 32, 33,
Expand Down Expand Up @@ -1206,5 +1210,9 @@ const uint8_t BIN2BCD8[4000]={
9,8,1,3, 9,8,2,3, 9,8,3,3, 9,8,4,3, 9,8,5,3, 9,8,6,3, 9,8,7,3, 9,8,8,3, 9,8,9,3,
9,9,0,3, 9,9,1,3, 9,9,2,3, 9,9,3,3, 9,9,4,3, 9,9,5,3, 9,9,6,3, 9,9,7,3, 9,9,8,3,
9,9,9,3};

#ifdef __cplusplus
}
#endif

#endif
8 changes: 8 additions & 0 deletions libdecnumber/decNumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
8 changes: 8 additions & 0 deletions libdecnumber/dpd/decimal128.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see

#include "decimal128Symbols.h"

#ifdef __cplusplus
extern "C" {
#endif

/* String conversions */
decimal128 * decimal128FromString(decimal128 *, const char *, decContext *);
char * decimal128ToString(const decimal128 *, char *);
Expand All @@ -93,4 +97,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
uint32_t decimal128IsCanonical(const decimal128 *);
decimal128 * decimal128Canonical(decimal128 *, const decimal128 *);

#ifdef __cplusplus
}
#endif

#endif
8 changes: 8 additions & 0 deletions libdecnumber/dpd/decimal32.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see

#include "decimal32Symbols.h"

#ifdef __cplusplus
extern "C" {
#endif

/* String conversions */
decimal32 * decimal32FromString(decimal32 *, const char *, decContext *);
char * decimal32ToString(const decimal32 *, char *);
Expand All @@ -91,4 +95,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
uint32_t decimal32IsCanonical(const decimal32 *);
decimal32 * decimal32Canonical(decimal32 *, const decimal32 *);

#ifdef __cplusplus
}
#endif

#endif
8 changes: 8 additions & 0 deletions libdecnumber/dpd/decimal64.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see

#include "decimal64Symbols.h"

#ifdef __cplusplus
extern "C" {
#endif

/* String conversions */
decimal64 * decimal64FromString(decimal64 *, const char *, decContext *);
char * decimal64ToString(const decimal64 *, char *);
Expand All @@ -93,4 +97,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
uint32_t decimal64IsCanonical(const decimal64 *);
decimal64 * decimal64Canonical(decimal64 *, const decimal64 *);

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 3d5f43a

Please sign in to comment.