Add compile switch for log in local time

This commit is contained in:
Shawn Chain 2018-11-09 18:00:11 +08:00
parent cf22bb061a
commit 970d57b997
2 changed files with 6 additions and 2 deletions

View file

@ -18,7 +18,11 @@
#include "Logger.h"
static bool utc = false;
#if defined(LOG_LOCALTIME) && LOG_LOCAL_TIME == 1
static const bool utc = false;
#else
static const bool utc = true;
#endif
CLogger::CLogger(const wxString& directory, const wxString& name) :
wxLog(),

View file

@ -1,5 +1,5 @@
export CXX ?= $(shell wx-config --cxx)
export CFLAGS ?= -O2 -Wall $(shell wx-config --cxxflags)
export CFLAGS ?= -O2 -Wall $(shell wx-config --cxxflags) -DLOG_LOCALTIME=1
export GUILIBS ?= $(shell wx-config --libs adv,core,base)
export LIBS ?= $(shell wx-config --libs base)
export LDFLAGS ?=