}
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
-inline Formatter *defaultFormatter(void) {
-#ifdef WIN32
- return new WindowsFormatter;
+inline Formatter *defaultFormatter(bool color = true) {
+ if (color) {
+#ifdef _WIN32
+ return new WindowsFormatter;
#else
- return new AnsiFormatter;
+ return new AnsiFormatter;
#endif
+ } else {
+ return new Formatter;
+ }
}