Changeset - 27f67d52c81e
[Not reviewed]
0 2 0
Vitaly Takmazov - 12 years ago 2013-02-13 11:53:51
vitalyster@gmail.com
fix msvc compilation with log4cxx
2 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/logging.cpp
Show inline comments
 
@@ -147,9 +147,9 @@ static void initLogging(Config *config, std::string key, bool only_create_dir =
 
				dirs.push_back(dir);
 
			}
 
		}
 
#ifndef WIN32
 
		mode_t old_cmask;
 
		// create directories
 
#ifndef WIN32
 
		old_cmask = umask(0007);
 
#endif
 

	
src/tests/main.cpp
Show inline comments
 
@@ -19,7 +19,11 @@ int main (int argc, char* argv[])
 
{
 
#ifdef WITH_LOG4CXX
 
	LoggerPtr root = Logger::getRootLogger();
 
#ifndef _MSC_VER
 
	root->addAppender(new FileAppender(new PatternLayout("%d %-5p %c: %m%n"), "libtransport_test.log", false));
 
#else
 
	root->addAppender(new FileAppender(new PatternLayout(L"%d %-5p %c: %m%n"), L"libtransport_test.log", false));
 
#endif
 
#endif
 

	
 
	std::vector<std::string> testsToRun;
0 comments (0 inline, 0 general)