Use the system's sprintf function.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Mar 2007 22:55:55 +0000 (22:55 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Mar 2007 22:55:55 +0000 (22:55 +0000)
ChangeLog
lib/vasnprintf.c

index f3ea301..7d34cd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-03-11  Bruno Haible  <bruno@clisp.org>
 
+       * lib/vasnprintf.c (sprintf): Undefine.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
        * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
        initializers in SunPRO C and Compaq C compilers.
 
index 6c328ae..34d2a46 100644 (file)
@@ -114,6 +114,8 @@ local_wcslen (const wchar_t *s)
 #  undef snprintf
 # endif
 #endif
+/* Here we need to call the native sprintf, not rpl_sprintf.  */
+#undef sprintf
 
 CHAR_T *
 VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list args)