summaryrefslogtreecommitdiff
path: root/include/decimal.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/decimal.h')
-rw-r--r--include/decimal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/decimal.h b/include/decimal.h
index 935d341437d..2adeb824318 100644
--- a/include/decimal.h
+++ b/include/decimal.h
@@ -16,6 +16,10 @@
#ifndef _decimal_h
#define _decimal_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum
{TRUNCATE=0, HALF_EVEN, HALF_UP, CEILING, FLOOR}
decimal_round_mode;
@@ -112,5 +116,9 @@ void max_decimal(int precision, int frac, decimal_t *to);
#define E_DEC_ERROR 31
#define E_DEC_FATAL_ERROR 30
+#ifdef __cplusplus
+}
+#endif
+
#endif