From 558958ad23a305d43a52589ca651a18dcc09aa0b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 10 Apr 2005 22:14:08 +0000 Subject: The FLTK string functions are now compiled in on all systems (STR #774) src/vsnprintf.c: - Replaced fl_vsnprintf() implementation with one that properly emulates the vsnprintf() function. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/flstring.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/flstring.h') diff --git a/src/flstring.h b/src/flstring.h index 82f54850c..24fd69e06 100644 --- a/src/flstring.h +++ b/src/flstring.h @@ -69,13 +69,13 @@ int strncasecmp(const char*,const char*,int); char *strdup(const char*); # endif -# if !HAVE_SNPRINTF FL_EXPORT extern int fl_snprintf(char *, size_t, const char *, ...); +# if !HAVE_SNPRINTF # define snprintf fl_snprintf # endif /* !HAVE_SNPRINTF */ -# if !HAVE_VSNPRINTF FL_EXPORT extern int fl_vsnprintf(char *, size_t, const char *, va_list ap); +# if !HAVE_VSNPRINTF # define vsnprintf fl_vsnprintf # endif /* !HAVE_VSNPRINTF */ @@ -84,13 +84,13 @@ FL_EXPORT extern int fl_vsnprintf(char *, size_t, const char *, va_list ap); * that work the way strncpy() and strncat() *should* have worked. */ -# if !HAVE_STRLCAT FL_EXPORT extern size_t fl_strlcat(char *, const char *, size_t); +# if !HAVE_STRLCAT # define strlcat fl_strlcat # endif /* !HAVE_STRLCAT */ -# if !HAVE_STRLCPY FL_EXPORT extern size_t fl_strlcpy(char *, const char *, size_t); +# if !HAVE_STRLCPY # define strlcpy fl_strlcpy # endif /* !HAVE_STRLCPY */ -- cgit v1.2.3