make LOG_COMPAT easier to override and extend
This commit is contained in:
parent
f33eeadf76
commit
4db4eb20d8
1 changed files with 9 additions and 7 deletions
10
common/log.h
10
common/log.h
|
@ -13,14 +13,16 @@
|
||||||
#define LOG_COMPAT_WIN 2
|
#define LOG_COMPAT_WIN 2
|
||||||
|
|
||||||
#ifndef LOG_COMPAT
|
#ifndef LOG_COMPAT
|
||||||
|
//default
|
||||||
#define LOG_COMPAT LOG_COMPAT_GNU
|
#define LOG_COMPAT LOG_COMPAT_GNU
|
||||||
#endif
|
//overrides
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define LOG_COMPAT LOG_COMPAT_WIN
|
||||||
|
#endif
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#define LOG_COMPAT LOG_COMPAT_GNU
|
#define LOG_COMPAT LOG_COMPAT_GNU
|
||||||
#else
|
#endif
|
||||||
#define LOG_COMPAT LOG_COMPAT_WIN
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue