Avoid name clashes with Windows.h and ERROR

This commit is contained in:
Danny Robson 2012-04-27 17:56:23 +10:00
parent a26dcd1444
commit 789cec88f4

View File

@ -23,6 +23,11 @@
#include <iostream>
#include <string>
// Windows.h or one of its friends defines a macro 'ERROR'. Screw Microsoft.
#ifdef ERROR
#undef ERROR
#endif
namespace util {
// rfc5424 log levels. It is assumed they are contiguous to simplify array
// indexing in logging code.