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:
Darin Adler
2001-09-25 06:50:22 +00:00
parent 703da5eb9b
commit bd7652dcef

View File

@ -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()
} }
} }