
23 Jul
2004
23 Jul
'04
2:26 p.m.
"John Maddock" <john@johnmaddock.co.uk> wrote in message news:048b01c470a6$c36402d0$73e70352@fuji...
c:\boost\libs\test\build\../src/test_tools.cpp:37: `wcscmp' is already declared in this scope
#if defined( __GNUC__ ) && defined( BOOST_NO_CWCHAR ) namespace std { using ::wcscmp; } <===================== here #endif
That's doubly wrong: it should check for BOOST_NO_STDC_NAMESPACE, and if BOOST_NO_CWCHAR is defined then wcscmp may not exist anyway.
John.
Related region in a code look like this: # ifdef BOOST_NO_STDC_NAMESPACE namespace std { using ::strcmp; using ::wcscmp; using ::strlen; using ::isprint; } # endif #if defined( __GNUC__ ) && defined( BOOST_NO_CWCHAR ) namespace std { using ::wcscmp; } #endif Any suggestions? Gennadiy.