mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Use CXX_STANDARD property to set -std flag. Get rid of UNIX define
This commit is contained in:
parent
043d48ebf3
commit
5c7ce81300
2 changed files with 12 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue