components/gnump/patches/008-ismpz.cc.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 219 22d9e175d379
permissions -rw-r--r--
Close of build 04.

--- 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
 // include/bits/locale_facets.tcc.
@@ -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)