diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-25 21:55:05 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-03-25 21:55:05 +0000 |
| commit | a36605449a3c0c870ea319111cac0a5c059c829b (patch) | |
| tree | eba1f10b257916cea01116e77bf35dcebd541eb7 /src/flstring.h | |
| parent | 915d0a748be1eec09ab407d3e569f0c58ec3e38b (diff) | |
Don't use the snprintf() and vsnprintf() names; instead, use fl_snprintf()
and fl_vsnprintf() and define snprintf and vsnprintf to fl_...
(Some compilers treat snprintf() and vsnprintf() differently, and we
also don't want to collide with other libraries that might provide their
own implementation...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/flstring.h')
| -rw-r--r-- | src/flstring.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/flstring.h b/src/flstring.h index 24b466585..b03a472ae 100644 --- a/src/flstring.h +++ b/src/flstring.h @@ -1,5 +1,5 @@ /* - * "$Id: flstring.h,v 1.1.2.2 2002/01/15 01:33:16 easysw Exp $" + * "$Id: flstring.h,v 1.1.2.3 2002/03/25 21:55:05 easysw Exp $" * * Common string header file for the Fast Light Tool Kit (FLTK). * @@ -53,11 +53,13 @@ extern "C" { # endif /* __cplusplus */ # if !HAVE_SNPRINTF -extern int snprintf(char *, size_t, const char *, ...); +extern int fl_snprintf(char *, size_t, const char *, ...); +# define snprintf fl_snprintf # endif /* !HAVE_SNPRINTF */ # if !HAVE_VSNPRINTF -extern int vsnprintf(char *, size_t, const char *, va_list ap); +extern int fl_vsnprintf(char *, size_t, const char *, va_list ap); +# define vsnprintf fl_vsnprintf # endif /* !HAVE_VSNPRINTF */ # ifdef __cplusplus @@ -66,5 +68,5 @@ extern int vsnprintf(char *, size_t, const char *, va_list ap); #endif /* !flstring_h */ /* - * End of "$Id: flstring.h,v 1.1.2.2 2002/01/15 01:33:16 easysw Exp $". + * End of "$Id: flstring.h,v 1.1.2.3 2002/03/25 21:55:05 easysw Exp $". */ |
