Skip to content
Snippets Groups Projects
Commit 2e969774 authored by Erik Andresen's avatar Erik Andresen
Browse files

Its ifdef _WIN32 not _WINDOWS

parent 3311d356
Branches
Tags
1 merge request!10Develop
Pipeline #
...@@ -35,7 +35,7 @@ int ProgressBar::GetConsoleWidth(){ ...@@ -35,7 +35,7 @@ int ProgressBar::GetConsoleWidth(){
int width; int width;
#ifdef _WINDOWS #ifdef _WIN32
CONSOLE_SCREEN_BUFFER_INFO csbi; CONSOLE_SCREEN_BUFFER_INFO csbi;
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi); GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi);
width = csbi.srWindow.Right - csbi.srWindow.Left; width = csbi.srWindow.Right - csbi.srWindow.Left;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#ifndef _PROGRESS_BAR_ #ifndef _PROGRESS_BAR_
#define _PROGRESS_BAR_ #define _PROGRESS_BAR_
#ifdef _WINDOWS #ifdef _WIN32
#include <windows.h> #include <windows.h>
#else #else
#include <sys/ioctl.h> #include <sys/ioctl.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment