Author: afester Date: Fri Mar 30 12:08:29 2007 New Revision: 524236 URL: http://svn.apache.org/viewvc?view=rev&rev=524236 Log: LOGCXX-126: fix build failure of console.cpp on systems with no wchar_t support
Modified: logging/log4cxx/trunk/examples/console.cpp Modified: logging/log4cxx/trunk/examples/console.cpp URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/examples/console.cpp?view=diff&rev=524236&r1=524235&r2=524236 ============================================================================== --- logging/log4cxx/trunk/examples/console.cpp (original) +++ logging/log4cxx/trunk/examples/console.cpp Fri Mar 30 12:08:29 2007 @@ -72,9 +72,17 @@ } } else if (strcmp("wcout", argv[i]) == 0) { if (err) { + #if LOG4CXX_HAS_STD_WCOUT std::wcerr << L"Hello, wcout" << std::endl; + #else + std::cerr << "Log4cxx has not wcout" << std::endl; + #endif } else { + #if LOG4CXX_HAS_STD_WCOUT std::wcout << L"Hello, wcout" << std::endl; + #else + std::cout << "Log4cxx has not wcout" << std::endl; + #endif } } else if (strcmp("configure", argv[i]) == 0) { configure(err);