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