summaryrefslogtreecommitdiff
path: root/src/vsnprintf.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-11-05 21:25:37 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-11-05 21:25:37 +0000
commitb7b9189ee4f131a9ebaef7b32fa6e03b35eb2a6c (patch)
treedc20f620301e73050349be19b2d10caaf7bde49f /src/vsnprintf.c
parentee093e2fceffb7e25e69225e9c1f59e17ae008a5 (diff)
Updated vsnprint stuff for C++.
git-svn-id: file:///fltk/svn/fltk/trunk@60 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/vsnprintf.c')
-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 $".
*/