From a36605449a3c0c870ea319111cac0a5c059c829b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 25 Mar 2002 21:55:05 +0000 Subject: 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 --- src/flstring.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/flstring.h') 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 $". */ -- cgit v1.2.3