summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vsnprintf.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vsnprintf.c b/src/vsnprintf.c
index 94485c5f5..4248d726b 100644
--- a/src/vsnprintf.c
+++ b/src/vsnprintf.c
@@ -1,5 +1,5 @@
/*
- * "$Id: vsnprintf.c,v 1.1 1998/11/05 16:07:45 mike Exp $"
+ * "$Id: vsnprintf.c,v 1.2 1998/11/05 21:25:37 mike Exp $"
*
* vsnprintf() function for the Fast Light Tool Kit (FLTK).
*
@@ -43,6 +43,9 @@
#if !HAVE_VSNPRINTF
+# ifdef __cplusplus
+extern "C"
+# endif
int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
const char* e = str+size-1;
char* p = str;
@@ -111,6 +114,9 @@ int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
#if !HAVE_SNPRINTF
+# ifdef __cplusplus
+extern "C"
+# endif
int snprintf(char* str, size_t size, const char* fmt, ...) {
int ret;
va_list ap;
@@ -123,5 +129,5 @@ int snprintf(char* str, size_t size, const char* fmt, ...) {
#endif
/*
- * End of "$Id: vsnprintf.c,v 1.1 1998/11/05 16:07:45 mike Exp $".
+ * End of "$Id: vsnprintf.c,v 1.2 1998/11/05 21:25:37 mike Exp $".
*/