1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-02 21:53:51 +00:00

Trying to fix linker errors

This commit is contained in:
Henry Fredrick Schreiner 2017-02-19 15:23:28 -05:00
parent 2170b60cc7
commit ad1bd262b5
2 changed files with 1 additions and 4 deletions

View File

@ -7,9 +7,6 @@ os:
environment: environment:
CTEST_OUPTUT_ON_FAILURE: ON CTEST_OUPTUT_ON_FAILURE: ON
configuration:
- Debug
branches: branches:
except: except:
- gh-pages - gh-pages

View File

@ -27,7 +27,7 @@ namespace CLI {
bool ExistingFile(std::string filename) { bool ExistingFile(std::string filename) {
struct stat buffer; struct stat buffer;
bool exist = stat(filename.c_str(), &buffer) == 0; bool exist = stat(filename.c_str(), &buffer) == 0;
bool is_dir = (buffer.st_mode & S_IFDIR != 0); bool is_dir = (buffer.st_mode & S_IFDIR) != 0;
if(!exist) { if(!exist) {
std::cerr << "File does not exist: " << filename << std::endl; std::cerr << "File does not exist: " << filename << std::endl;
return false; return false;