diff options
Diffstat (limited to 'cxx')
-rw-r--r-- | cxx/osdoprnti.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cxx/osdoprnti.cc b/cxx/osdoprnti.cc index fefb060c5..36aeaf7a5 100644 --- a/cxx/osdoprnti.cc +++ b/cxx/osdoprnti.cc @@ -24,14 +24,12 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <iostream> -#include <stdarg.h> /* for va_list and hence doprnt_funs_t */ -#include <string.h> +#include <cstdarg> /* for va_list and hence doprnt_funs_t */ +#include <cstring> /* for strlen */ #include "gmp.h" #include "gmp-impl.h" -#include <stdio.h> - using namespace std; @@ -49,7 +47,7 @@ __gmp_doprnt_integer_ostream (ostream &o, struct doprnt_params_t *p, /* don't show leading zeros the way printf does */ p->prec = -1; - + GMP_ASPRINTF_T_INIT (d, &result); ret = __gmp_doprnt_integer (&__gmp_asprintf_funs_noformat, &d, p, s); ASSERT (ret != -1); |