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