This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: nonnull markings in sys/cdefs.h causes trouble with gcc-3.3 ?
- From: Roland McGrath <roland at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 7 Apr 2005 19:42:51 -0700
- Subject: Re: nonnull markings in sys/cdefs.h causes trouble with gcc-3.3 ?
> on the other hand, why isnt it ok to define a local function even if it
> happens to use the same name as the glibc ? since the function is only used
> locally, the external libc version wouldnt be called, and people can do what
> they want ...
Like I said, don't request the libc function to be declared. You can do
what you want with names not in the libc name space you are compiling against.
If you want strcasestr to yourself, don't use _GNU_SOURCE.