summaryrefslogtreecommitdiff
path: root/src/libs/libgroff/iftoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/libgroff/iftoa.c')
-rw-r--r--src/libs/libgroff/iftoa.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/libs/libgroff/iftoa.c b/src/libs/libgroff/iftoa.c
index 29a3d894..2d232824 100644
--- a/src/libs/libgroff/iftoa.c
+++ b/src/libs/libgroff/iftoa.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1989, 1990, 1991, 1992, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2004
+ Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
@@ -19,8 +20,11 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define INT_DIGITS 19 /* enough for 64-bit integer */
-char *if_to_a(i, decimal_point)
- int i, decimal_point;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+char *if_to_a(int i, int decimal_point)
{
/* room for a -, INT_DIGITS digits, a decimal point, and a terminating '\0' */
static char buf[INT_DIGITS + 3];
@@ -63,3 +67,7 @@ char *if_to_a(i, decimal_point)
}
return p;
}
+
+#ifdef __cplusplus
+}
+#endif