stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [PATCH] MSVC has non-standard prototype of the wcstok()
Date Thu, 13 Dec 2007 00:22:51 GMT
Farid Zaripov wrote:
>> -----Original Message-----
>> From: Martin Sebor [mailto:sebor@roguewave.com] 
>> Sent: Wednesday, December 12, 2007 8:53 AM
>> To: stdcxx-dev@incubator.apache.org
>> Subject: Re: [PATCH] MSVC has non-standard prototype of the wcstok()
> 
>>>   Since the configure script performs checking only names 
>> and doesn't 
>>> checking the correct prototype, the _RWSTD_NO_WCSTOK macro is not 
>>> defined in config.h. As a result the 21.cwchar.cpp test asserts on
>>> "wcstok() not declared".
>> But there is a mechanism to check for signatures too, isn't there?
>> Could we use it to detect this or are you saying even this is 
>> not enough?
> 
>   This mechanism checks the signatures in header files, but incorrect
> wcstok() will be found in libc.

I see. Well, there's nothing we can do about that. I guess we'll have
to live with the compiler-specific #ifdefs in our code. I tell you, if
it weren't for Microsoft porting would be so boring... ;-)

Martin

> 
> config.h:
> -----------
> #define _RWSTD_NO_WCSTOK
> // #define _RWSTD_NO_WCSTOK_IN_LIBC
> -----------
> 
> Farid.
> 


Mime
View raw message