diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-04-10 22:14:08 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-04-10 22:14:08 +0000 |
| commit | 558958ad23a305d43a52589ca651a18dcc09aa0b (patch) | |
| tree | a8a15ce13e7913cdb46fe4e621e288486227d292 /src/flstring.h | |
| parent | 5b20fbdce435bf8a367c06400d0119810ad71d20 (diff) | |
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
Diffstat (limited to 'src/flstring.h')
| -rw-r--r-- | src/flstring.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |
