components/gnump/patches/008-ismpz.cc.patch
author Petr Nyc <Petr.Nyc@Oracle.COM>
Tue, 29 Jul 2014 09:55:23 -0700
branchs11u2-sru
changeset 3240 a865b173bdc0
parent 219 22d9e175d379
permissions -rw-r--r--
Added tag 0.175.2.1.0.5.0, S11.2SRU1.5 for changeset 196f1c37faa5

--- 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)