From bd7652dcef5d105e2406f44a8c7e20dada2fc887 Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Tue, 25 Sep 2001 06:50:22 +0000 Subject: [PATCH] If 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] --- test/boost_no_stdc_namespace.ipp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/boost_no_stdc_namespace.ipp b/test/boost_no_stdc_namespace.ipp index 13652b04..5f1aca90 100644 --- a/test/boost_no_stdc_namespace.ipp +++ b/test/boost_no_stdc_namespace.ipp @@ -26,9 +26,11 @@ namespace boost_no_stdc_namespace{ int test() { char c = 0; +#ifndef BOOST_NO_CTYPE_FUNCTIONS std::isspace(c); std::isalpha(c); std::ispunct(c); +#endif std::strlen(&c); std::clock(); @@ -36,6 +38,3 @@ int test() } } - - -