Avoid name clashes with Windows.h and ERROR
This commit is contained in:
parent
a26dcd1444
commit
789cec88f4
5
log.hpp
5
log.hpp
@ -23,6 +23,11 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
// Windows.h or one of its friends defines a macro 'ERROR'. Screw Microsoft.
|
||||||
|
#ifdef ERROR
|
||||||
|
#undef ERROR
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace util {
|
namespace util {
|
||||||
// rfc5424 log levels. It is assumed they are contiguous to simplify array
|
// rfc5424 log levels. It is assumed they are contiguous to simplify array
|
||||||
// indexing in logging code.
|
// indexing in logging code.
|
||||||
|
Loading…
Reference in New Issue
Block a user