summaryrefslogtreecommitdiff
path: root/libdecnumber/dpd
diff options
context:
space:
mode:
Diffstat (limited to 'libdecnumber/dpd')
-rw-r--r--libdecnumber/dpd/decimal128.c4
-rw-r--r--libdecnumber/dpd/decimal128Symbols.h10
-rw-r--r--libdecnumber/dpd/decimal32.c4
-rw-r--r--libdecnumber/dpd/decimal32Symbols.h10
-rw-r--r--libdecnumber/dpd/decimal64.c4
-rw-r--r--libdecnumber/dpd/decimal64Symbols.h10
6 files changed, 30 insertions, 12 deletions
diff --git a/libdecnumber/dpd/decimal128.c b/libdecnumber/dpd/decimal128.c
index 6aa98b5a21d..0e32ceb181c 100644
--- a/libdecnumber/dpd/decimal128.c
+++ b/libdecnumber/dpd/decimal128.c
@@ -49,10 +49,6 @@
#include "decimal128.h" /* our primary include */
/* Utility routines and tables [in decimal64.c] */
-/* DPD2BIN and the reverse are renamed to prevent link-time conflict */
-/* if decQuad is also built in the same executable */
-#define DPD2BIN DPD2BINx
-#define BIN2DPD BIN2DPDx
extern const uInt COMBEXP[32], COMBMSD[32];
extern const uShort DPD2BIN[1024];
extern const uShort BIN2DPD[1000]; /* [not used] */
diff --git a/libdecnumber/dpd/decimal128Symbols.h b/libdecnumber/dpd/decimal128Symbols.h
index da9d76beaf6..b30687c2b4b 100644
--- a/libdecnumber/dpd/decimal128Symbols.h
+++ b/libdecnumber/dpd/decimal128Symbols.h
@@ -11,6 +11,16 @@
#define decimal128ToEngString __decimal128ToEngString
#define decimal128ToNumber __decimal128ToNumber
#define decimal128ToString __decimal128ToString
+#define COMBEXP __decnnCOMBEXP
+#define COMBMSD __decnnCOMBMSD
+
+/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128
+ and also in support for decSingle/decDouble/decQuad. Rename them in case
+ both types of support are used in the same executable. */
+#undef DPD2BIN
+#define DPD2BIN __decnnDPD2BIN
+#undef BIN2DPD
+#define BIN2DPD __decnnBIN2DPD
#endif
#endif
diff --git a/libdecnumber/dpd/decimal32.c b/libdecnumber/dpd/decimal32.c
index 692c2f70ecb..42bddf172af 100644
--- a/libdecnumber/dpd/decimal32.c
+++ b/libdecnumber/dpd/decimal32.c
@@ -49,10 +49,6 @@
#include "decimal32.h" /* our primary include */
/* Utility tables and routines [in decimal64.c] */
-/* DPD2BIN and the reverse are renamed to prevent link-time conflict */
-/* if decQuad is also built in the same executable */
-#define DPD2BIN DPD2BINx
-#define BIN2DPD BIN2DPDx
extern const uInt COMBEXP[32], COMBMSD[32];
extern const uShort DPD2BIN[1024];
extern const uShort BIN2DPD[1000];
diff --git a/libdecnumber/dpd/decimal32Symbols.h b/libdecnumber/dpd/decimal32Symbols.h
index de119346c4c..c4aa74fdfd3 100644
--- a/libdecnumber/dpd/decimal32Symbols.h
+++ b/libdecnumber/dpd/decimal32Symbols.h
@@ -11,6 +11,16 @@
#define decimal32ToEngString __decimal32ToEngString
#define decimal32ToNumber __decimal32ToNumber
#define decimal32ToString __decimal32ToString
+#define COMBEXP __decnnCOMBEXP
+#define COMBMSD __decnnCOMBMSD
+
+/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128
+ and also in support for decSingle/decDouble/decQuad. Rename them in case
+ both types of support are used in the same executable. */
+#undef DPD2BIN
+#define DPD2BIN __decnnDPD2BIN
+#undef BIN2DPD
+#define BIN2DPD __decnnBIN2DPD
#endif
#endif
diff --git a/libdecnumber/dpd/decimal64.c b/libdecnumber/dpd/decimal64.c
index 359214e5dbe..c3617c46c08 100644
--- a/libdecnumber/dpd/decimal64.c
+++ b/libdecnumber/dpd/decimal64.c
@@ -49,10 +49,6 @@
#include "decimal64.h" /* our primary include */
/* Utility routines and tables [in decimal64.c]; externs for C++ */
-/* DPD2BIN and the reverse are renamed to prevent link-time conflict */
-/* if decQuad is also built in the same executable */
-#define DPD2BIN DPD2BINx
-#define BIN2DPD BIN2DPDx
extern const uInt COMBEXP[32], COMBMSD[32];
extern const uShort DPD2BIN[1024];
extern const uShort BIN2DPD[1000];
diff --git a/libdecnumber/dpd/decimal64Symbols.h b/libdecnumber/dpd/decimal64Symbols.h
index cf965bf5bd8..efb64463817 100644
--- a/libdecnumber/dpd/decimal64Symbols.h
+++ b/libdecnumber/dpd/decimal64Symbols.h
@@ -11,6 +11,16 @@
#define decimal64ToEngString __decimal64ToEngString
#define decimal64ToNumber __decimal64ToNumber
#define decimal64ToString __decimal64ToString
+#define COMBEXP __decnnCOMBEXP
+#define COMBMSD __decnnCOMBMSD
+
+/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128
+ and also in support for decSingle/decDouble/decQuad. Rename them in case
+ both types of support are used in the same executable. */
+#undef DPD2BIN
+#define DPD2BIN __decnnDPD2BIN
+#undef BIN2DPD
+#define BIN2DPD __decnnBIN2DPD
#endif
#endif