equal
deleted
inserted
replaced
1 --- cxx/osmpf.cc.orig 2007-09-01 03:09:03.000000000 -0700 |
|
2 +++ cxx/osmpf.cc 2008-04-18 10:08:31.565184503 -0700 |
|
3 @@ -19,15 +19,14 @@ |
|
4 |
|
5 #include <clocale> |
|
6 #include <iostream> |
|
7 +using namespace std; |
|
8 + |
|
9 #include <stdarg.h> /* for va_list and hence doprnt_funs_t */ |
|
10 #include <string.h> |
|
11 |
|
12 #include "gmp.h" |
|
13 #include "gmp-impl.h" |
|
14 |
|
15 -using namespace std; |
|
16 - |
|
17 - |
|
18 /* The gmp_asprintf support routines never give an error, so |
|
19 __gmp_doprnt_mpf shouldn't fail and it's return can just be checked with |
|
20 an ASSERT. */ |
|
21 @@ -44,7 +43,14 @@ |
|
22 |
|
23 #if HAVE_STD__LOCALE |
|
24 char point[2]; |
|
25 - point[0] = use_facet< numpunct<char> >(o.getloc()).decimal_point(); |
|
26 + point[0] = |
|
27 +#ifndef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE |
|
28 + use_facet< numpunct<char> >(o.getloc()) |
|
29 +#else |
|
30 + use_facet(o.getloc(),(numpunct<char>*)0) |
|
31 +#endif |
|
32 + .decimal_point(); |
|
33 + |
|
34 point[1] = '\0'; |
|
35 #else |
|
36 const char *point = localeconv()->decimal_point; |
|