008-ismpz.cc.patch revision 219
219N/A--- cxx/ismpz.cc.orig 2007-09-01 03:09:03.000000000 -0700
219N/A+++ cxx/ismpz.cc 2008-04-18 10:06:50.866243982 -0700
219N/A@@ -20,11 +20,11 @@
219N/A #include <cctype>
219N/A #include <iostream>
219N/A #include <string>
219N/A-#include "gmp.h"
219N/A-#include "gmp-impl.h"
219N/A-
219N/A+#include <clocale>
219N/A using namespace std;
219N/A
219N/A+#include "gmp.h"
219N/A+#include "gmp-impl.h"
219N/A
219N/A // For g++ libstdc++ parsing see num_get<chartype,initer>::_M_extract_int in
219N/A // include/bits/locale_facets.tcc.
219N/A@@ -38,7 +38,12 @@
219N/A if (i.flags() & ios::skipws) // skip initial whitespace
219N/A {
219N/A #if HAVE_STD__LOCALE
219N/A- const ctype<char>& ct = use_facet< ctype<char> >(i.getloc());
219N/A+ const ctype<char>& ct =
219N/A+#ifndef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE
219N/A+ use_facet< ctype<char> >(i.getloc());
219N/A+#else
219N/A+ use_facet(i.getloc(),(ctype<char>*)0);
219N/A+#endif
219N/A #define cxx_isspace(c) (ct.is(ctype_base::space,(c)))
219N/A #else
219N/A #define cxx_isspace(c) isspace(c)