This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PR 2767, V3 regression failure on strstr et al


On 18-May-2001, Stephen M. Webb <stephen@bregmasoft.com> wrote:
> 
> *** std_cstring.h	2001/05/08 23:53:55	1.7
> --- std_cstring.h	2001/05/19 02:44:52
> ***************
> *** 40,45 ****
> --- 40,52 ----
>   #include <bits/std_cstddef.h>
>   
>   #pragma GCC system_header
> + 
> + #define memchr  glibcpp_hidden_memchr
> + #define strchr  glibcpp_hidden_strchr
> + #define strpbrk glibcpp_hidden_strpbrk
> + #define strrchr glibcpp_hidden_strrchr
> + #define strstr  glibcpp_hidden_strstr

The names glibcpp_hidden_* are in the user's namespace.
You should use something in the implementation's namespace,
e.g. __glibcpp_*.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]