From 2ae966b7fbb1189ca9f40e75d018bff2b40ef5ba Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 9 May 2020 12:47:26 +0100 Subject: [PATCH] Fix for Windows compilation. --- MMDVMHost.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index 00619e8..6b17c16 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -237,7 +237,11 @@ int CMMDVMHost::run() #endif #endif +#if !defined(_WIN32) && !defined(_WIN64) ret = ::LogInitialise(m_daemon, m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel()); +#else + ret = ::LogInitialise(false, m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel()); +#endif if (!ret) { ::fprintf(stderr, "MMDVMHost: unable to open the log file\n"); return 1;