diff options
author | pixel <pixel> | 2003-03-03 13:31:25 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-03 13:31:25 +0000 |
commit | 7beeced718eeeefeb4ac5e132b1be85a71e6da22 (patch) | |
tree | bb73d6bd8b25d01959174e26e24d6fd43f025be4 /lib | |
parent | 464d3336f191f44f4ba3e8f16107303771a003bb (diff) |
Whoups
Diffstat (limited to 'lib')
-rw-r--r-- | lib/String.cc | 12 |
1 files 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; } |