Cross Reference: 010-osmpf.cc.patch
xref
: /
solaris-userland
/
components
/
gnump
/
patches
/
010-osmpf.cc.patch
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
010-osmpf.cc.patch revision 219
219
N/A
---
cxx/osmpf.cc.orig
2007-09-01 03:09:03.000000000 -0700
219
N/A
+++
cxx/osmpf.cc
2008-04-18 10:08:31.565184503 -0700
219
N/A
@@ -19,15 +19,14 @@
219
N/A
219
N/A
#include <clocale>
219
N/A
#include <iostream>
219
N/A
+using namespace std;
219
N/A
+
219
N/A
#include <
stdarg.h
> /* for va_list and hence doprnt_funs_t */
219
N/A
#include <
string.h
>
219
N/A
219
N/A
#include "
gmp.h
"
219
N/A
#include "
gmp-impl.h
"
219
N/A
219
N/A
-using namespace std;
219
N/A
-
219
N/A
-
219
N/A
/* The gmp_asprintf support routines never give an error, so
219
N/A
__gmp_doprnt_mpf shouldn't fail and it's return can just be checked with
219
N/A
an ASSERT. */
219
N/A
@@ -44,7 +43,14 @@
219
N/A
219
N/A
#if HAVE_STD__LOCALE
219
N/A
char point[2];
219
N/A
- point[0] = use_facet< numpunct<char> >(
o.getloc
()).decimal_point();
219
N/A
+ point[0] =
219
N/A
+#ifndef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE
219
N/A
+ use_facet< numpunct<char> >(
o.getloc
())
219
N/A
+#else
219
N/A
+ use_facet(
o.getloc
(),(numpunct<char>*)0)
219
N/A
+#endif
219
N/A
+ .decimal_point();
219
N/A
+
219
N/A
point[1] = '\0';
219
N/A
#else
219
N/A
const char *point = localeconv()->decimal_point;