stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: [PATCH] MSVC has non-standard prototype of the wcstok()
Date Wed, 12 Dec 2007 17:13:59 GMT
> -----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.

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

Farid.

Mime
View raw message