Browse Source

oveeride --log for windows

pull/409/head
orignal 8 years ago
parent
commit
0493a321d2
  1. 2
      Config.h
  2. 2
      DaemonWin32.cpp
  3. 2
      Makefile.mingw

2
Config.h

@ -90,7 +90,7 @@ namespace config { @@ -90,7 +90,7 @@ namespace config {
bool SetOption(const char *name, const T& value) {
if (!m_Options.count(name))
return false;
m_Options[name] = value;
m_Options.at(name).value() = value;
notify(m_Options);
return true;
}

2
DaemonWin32.cpp

@ -28,6 +28,8 @@ namespace i2p @@ -28,6 +28,8 @@ namespace i2p
setlocale(LC_ALL, "Russian");
if (!i2p::win32::StartWin32App ()) return false;
// override log
i2p::config::SetOption("log", std::string ("file"));
bool ret = Daemon_Singleton::start();
if (ret && IsLogToFile ())
{

2
Makefile.mingw

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
CXX = g++
WINDRES = windres
CXXFLAGS = -O2 -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN
CXXFLAGS = -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN
NEEDED_CXXFLAGS = -std=c++11
BOOST_SUFFIX = -mt
INCFLAGS = -I/usr/include/ -I/usr/local/include/

Loading…
Cancel
Save