]> git.pld-linux.org Git - packages/crossm68k-gcc.git/blame - crossm68k-gcc-nowchar.patch
- outdated
[packages/crossm68k-gcc.git] / crossm68k-gcc-nowchar.patch
CommitLineData
1b8f31c8 1
2Don't use wchar related functions when _GLIBCPP_USE_WCHAR_T isn't defined.
3
4Patch by Bernardo Innocenti <bernie@develer.com>
5
6
7--- gcc-3.3.1-20030720.orig/libstdc++-v3/include/c_std/std_cstdlib.h 2003-04-18 12:08:05.000000000 +0200
8+++ gcc-3.3.1-20030720/libstdc++-v3/include/c_std/std_cstdlib.h 2003-07-26 00:50:26.000000000 +0200
9@@ -99,23 +99,26 @@ namespace std
10 using ::free;
11 using ::getenv;
12 using ::labs;
13 using ::ldiv;
14 using ::malloc;
15- using ::mblen;
16- using ::mbstowcs;
17- using ::mbtowc;
18 using ::qsort;
19 using ::rand;
20 using ::realloc;
21 using ::srand;
22 using ::strtod;
23 using ::strtol;
24 using ::strtoul;
25 using ::system;
26+
27+#ifdef _GLIBCPP_USE_WCHAR_T
28+ using ::mblen;
29+ using ::mbstowcs;
30+ using ::mbtowc;
31 using ::wcstombs;
32 using ::wctomb;
33+#endif // _GLIBCPP_USE_WCHAR_T
34
35 inline long
36 abs(long __i) { return labs(__i); }
37
38 inline ldiv_t
This page took 0.075818 seconds and 4 git commands to generate.