1 https://sourceforge.net/tracker/?func=detail&aid=2888817&group_id=146814&atid=766244
3 --- STLport-5.2.1/src/c_locale_dummy/c_locale_dummy.c
4 +++ STLport-5.2.1/src/c_locale_dummy/c_locale_dummy.c
9 +#ifndef _STLP_NO_CWCHAR
13 +#ifndef _STLP_NO_CWCHAR
18 #if defined (_STLP_USE_SAFE_STRING_FUNCTIONS)
19 --- STLport-5.2.1/src/c_locale.h
20 +++ STLport-5.2.1/src/c_locale.h
23 #include "stlport_prefix.h"
25 +#ifndef _STLP_NO_CWCHAR
26 #include <wchar.h> /* for mbstate_t */
28 #include <stl/c_locale.h>
30 struct _Locale_name_hint;
35 #if defined (_GNU_SOURCE) && defined (__GLIBC__) && \
36 ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2))
37 # define _STLP_USE_GLIBC2_LOCALIZATION
38 --- STLport-5.2.1/src/time_facets.cpp
39 +++ STLport-5.2.1/src/time_facets.cpp
41 static void __append(__iostring &buf, const string& name)
42 { buf.append(name.data(), name.data() + name.size()); }
44 +#ifndef _STLP_NO_NATIVE_WIDE_FUNCTIONS
45 static void __append(__iowstring &buf, const wstring& name)
46 { buf.append(name.data(), name.data() + name.size()); }
49 static void __append(__iostring &buf, char *first, char *last, const ctype<char>& /* ct */)
50 { buf.append(first, last); }
52 +#ifndef _STLP_NO_NATIVE_WIDE_FUNCTIONS
53 static void __append(__iowstring &buf, char *first, char *last, const ctype<wchar_t>& ct) {
55 ct.widen(first, last, _wbuf);
56 buf.append(_wbuf, _wbuf + (last - first));
60 #if defined (__GNUC__)
61 /* The number of days from the first day of the first ISO week of this
63 const _Time_Info& table, const tm* t)
64 { __write_formatted_timeT(buf, ct, format, modifier, table, t); }
66 +#ifndef _STLP_NO_NATIVE_WIDE_FUNCTIONS
67 void _STLP_CALL __write_formatted_time(__iowstring &buf, const ctype<wchar_t>& ct,
68 char format, char modifier,
69 const _WTime_Info& table, const tm* t)
70 { __write_formatted_timeT(buf, ct, format, modifier, table, t); }
73 static time_base::dateorder __get_date_order(_Locale_time* time) {
74 const char * fmt = _Locale_d_fmt(time);
75 --- STLport-5.2.1/stlport/stl/_cstdlib.h
76 +++ STLport-5.2.1/stlport/stl/_cstdlib.h
78 // these functions just don't exist on Windows CE
79 using _STLP_VENDOR_CSTD::abort;
80 using _STLP_VENDOR_CSTD::getenv;
81 +#ifndef _STLP_NO_NATIVE_WIDE_FUNCTIONS
82 using _STLP_VENDOR_CSTD::mblen;
83 using _STLP_VENDOR_CSTD::mbtowc;
85 using _STLP_VENDOR_CSTD::system;
86 using _STLP_VENDOR_CSTD::bsearch;
89 using _STLP_VENDOR_CSTD::atof;
90 using _STLP_VENDOR_CSTD::atoi;
91 using _STLP_VENDOR_CSTD::atol;
92 +#ifndef _STLP_NO_NATIVE_WIDE_FUNCTIONS
93 using _STLP_VENDOR_CSTD::mbstowcs;
95 using _STLP_VENDOR_CSTD::strtod;
96 using _STLP_VENDOR_CSTD::strtol;
97 using _STLP_VENDOR_CSTD::strtoul;