http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49020
__vic <d.v.a at ngs dot ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Version|4.1.1 |4.7.0 Resolution|DUPLICATE | --- Comment #15 from __vic <d.v.a at ngs dot ru> 2011-05-18 09:30:59 UTC --- The following code would work anyway: namespace std { #ifdef __CORRECT_ISO_CPP_STRING_H_PROTO using ::strchr; #else inline const char *strchr(const char *__s, int __c) { return ::strchr(__s, __c); } inline char *strchr(char *__s, int __c) { return ::strchr(__s, __c); } #endif }