summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-12-02 15:56:46 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-12-02 15:56:46 +0000
commitb69778d811c32fe1c2bfdd66409ff1fd3b32b64b (patch)
tree69c66af2ef4851f90b040e9e712c6fcaa82aa1f1
parent340f569e669055e7fb095ba5ff38b34e2a64880f (diff)
Fix build on certain mingw versions.
-rw-r--r--common/formatter.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/formatter.hpp b/common/formatter.hpp
index 1449eda..5e2143e 100644
--- a/common/formatter.hpp
+++ b/common/formatter.hpp
@@ -109,8 +109,39 @@ inline std::ostream& operator<<(std::ostream& os, const Attribute *attr) {
#ifdef _WIN32
+
#include <windows.h>
+
+#ifndef COMMON_LVB_LEADING_BYTE
+##define COMMON_LVB_LEADING_BYTE 0x0100
+#endif
+
+#ifndef COMMON_LVB_TRAILING_BYTE
+##define COMMON_LVB_TRAILING_BYTE 0x0200
+#endif
+
+#ifndef COMMON_LVB_GRID_HORIZONTAL
+##define COMMON_LVB_GRID_HORIZONTAL 0x0400
+#endif
+
+#ifndef COMMON_LVB_GRID_LVERTICAL
+##define COMMON_LVB_GRID_LVERTICAL 0x0800
+#endif
+
+#ifndef COMMON_LVB_GRID_RVERTICAL
+##define COMMON_LVB_GRID_RVERTICAL 0x1000
+#endif
+
+#ifndef COMMON_LVB_REVERSE_VIDEO
+##define COMMON_LVB_REVERSE_VIDEO 0x4000
+#endif
+
+#ifndef COMMON_LVB_UNDERSCORE
+##define COMMON_LVB_UNDERSCORE 0x8000
+#endif
+
+
class WindowsAttribute : public Attribute {
protected:
WORD wAttributes;