forked from boostorg/config
If <ctype.h> is known not to have functions, then don't try to use the
character-classifying operations to test the presence of the std namespace for C library functions. [SVN r11245]
This commit is contained in:
@ -26,9 +26,11 @@ namespace boost_no_stdc_namespace{
|
|||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
char c = 0;
|
char c = 0;
|
||||||
|
#ifndef BOOST_NO_CTYPE_FUNCTIONS
|
||||||
std::isspace(c);
|
std::isspace(c);
|
||||||
std::isalpha(c);
|
std::isalpha(c);
|
||||||
std::ispunct(c);
|
std::ispunct(c);
|
||||||
|
#endif
|
||||||
std::strlen(&c);
|
std::strlen(&c);
|
||||||
std::clock();
|
std::clock();
|
||||||
|
|
||||||
@ -36,6 +38,3 @@ int test()
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user