From ba63a3c40e78e3bd7352a3fffe7dbbc944f24cda Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 11 Dec 2005 17:28:36 +0000 Subject: [PATCH] Need std:: prefix to strcmp. [SVN r31984] --- test/math_info.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/math_info.cpp b/test/math_info.cpp index f64b8a47..0ac04d7e 100644 --- a/test/math_info.cpp +++ b/test/math_info.cpp @@ -23,6 +23,10 @@ #include #include +#ifdef BOOST_NO_STDC_NAMESPACE +namespace std{ using ::strcmp; } +#endif + static unsigned int indent = 4; static unsigned int width = 40; @@ -30,7 +34,7 @@ void print_macro(const char* name, const char* value) { // if name == value+1 then then macro is not defined, // in which case we don't print anything: - if(0 != strcmp(name, value+1)) + if(0 != std::strcmp(name, value+1)) { for(unsigned i = 0; i < indent; ++i) std::cout.put(' '); std::cout << std::setw(width);