fix windows compilation issues
[calc.git] / color.c
diff --git a/color.c b/color.c
index 2af7572896fbb2e3831bae5b51a5ca8a81cfb1f3..7aec785873cf1f28f7a0b03230b524dcb4f22137 100644 (file)
--- a/color.c
+++ b/color.c
@@ -16,7 +16,7 @@ void color_set (FILE *fid, color_e color)
     if (init == 0) {
         CONSOLE_SCREEN_BUFFER_INFO info;
         GetConsoleScreenBufferInfo (GetStdHandle (STD_OUTPUT_HANDLE), &info);
-        init = info.attr;
+        init = info.wAttributes;
     }
 
     /* default attribute */