equal
deleted
inserted
replaced
1 --- cxx/ismpz.cc.orig 2007-09-01 03:09:03.000000000 -0700 |
|
2 +++ cxx/ismpz.cc 2008-04-18 10:06:50.866243982 -0700 |
|
3 @@ -20,11 +20,11 @@ |
|
4 #include <cctype> |
|
5 #include <iostream> |
|
6 #include <string> |
|
7 -#include "gmp.h" |
|
8 -#include "gmp-impl.h" |
|
9 - |
|
10 +#include <clocale> |
|
11 using namespace std; |
|
12 |
|
13 +#include "gmp.h" |
|
14 +#include "gmp-impl.h" |
|
15 |
|
16 // For g++ libstdc++ parsing see num_get<chartype,initer>::_M_extract_int in |
|
17 // include/bits/locale_facets.tcc. |
|
18 @@ -38,7 +38,12 @@ |
|
19 if (i.flags() & ios::skipws) // skip initial whitespace |
|
20 { |
|
21 #if HAVE_STD__LOCALE |
|
22 - const ctype<char>& ct = use_facet< ctype<char> >(i.getloc()); |
|
23 + const ctype<char>& ct = |
|
24 +#ifndef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE |
|
25 + use_facet< ctype<char> >(i.getloc()); |
|
26 +#else |
|
27 + use_facet(i.getloc(),(ctype<char>*)0); |
|
28 +#endif |
|
29 #define cxx_isspace(c) (ct.is(ctype_base::space,(c))) |
|
30 #else |
|
31 #define cxx_isspace(c) isspace(c) |
|