This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Prevent macro expansion of mblen
On Dec 28, 2000, Gabriel Dos Reis <gdr@codesourcery.com> wrote:
> | +#ifdef mblen
> | + inline int (mblen)(const char *p, size_t l) { return mblen(p, l); }
> | +#undef mblen
> | +#else
> | extern "C" int mblen(const char*, size_t);
> | +#endif
> "mblen" needs to have C linkage in all cases.
Is it std::mblen that must have C linkage? I ask because ::mblen
is declared and defined in the C library, and it does have C linkage.
Isn't this inline function enough?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me