From 7beeced718eeeefeb4ac5e132b1be85a71e6da22 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 3 Mar 2003 13:31:25 +0000 Subject: Whoups --- lib/String.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/String.cc b/lib/String.cc index ec78c22..3e801c7 100644 --- a/lib/String.cc +++ b/lib/String.cc @@ -124,16 +124,22 @@ const char * String::set(const char * s, va_list ap) { return str; } +#ifdef HAVE_GMP + gmp_vasprintf(&str, s, ap); + r = str; +#else // !HAVE_GMP #ifdef HAVE_VASPRINTF vasprintf(&str, s, ap); r = str; +#else // !HAVE_VASPRINTF #ifdef HAVE_VSNPRINTF vsnprintf(t, BUFSIZ, s, ap); -#else +#else // !HAVE_VSNPRINTF vsprintf(t, s, ap); -#endif +#endif // HAVE_VSNPRINTF str = Base::strdup(r = t); -#endif +#endif // HAVE_VASPRINTF +#endif // HAVE_GMP siz = ::strlen(str); return r; } -- cgit v1.2.3