Use CXX_STANDARD property to set -std flag. Get rid of UNIX define

This commit is contained in:
Paul Romano 2019-02-22 23:26:32 -06:00
parent 043d48ebf3
commit 5c7ce81300
2 changed files with 12 additions and 11 deletions

View file

@ -5,14 +5,14 @@
#include <iostream>
#include <iomanip>
#ifdef UNIX
#if defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#include <unistd.h>
#endif
#define BAR_WIDTH 72
bool is_terminal() {
#ifdef UNIX
#ifdef _POSIX_VERSION
return isatty(STDOUT_FILENO) != 0;
#else
return false;