bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wmemchr on MSVC


From: Bruno Haible
Subject: Re: wmemchr on MSVC
Date: Tue, 4 Oct 2011 01:47:12 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Eric Blake wrote:
> letting MSVC provide only an inline function will break the 
> ability to pass around a function pointer for wmemchr.

No, it will only break the ability to compare such function pointers
with ==.

> I'm surprised  that letting the inline function get by still passes the
> signature checks in the unit tests.

Yes, I was surprised too, and it even passes the signature check in C++ mode.
But it does pass the tests, therefore I don't see the need to enable the
replacement.

It's similar to stat() and lstat() on some Unix platforms, which sometimes
are defined as inline functions in terms of a function xstat() or so.
If it's POSIX compliant that glibc defines stat() and lstat() as inline
functions, it must also be POSIX compliant to define wmemchr() as an inline
function.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]