mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-02 05:33:53 +00:00
Trying to fix linker errors
This commit is contained in:
parent
2170b60cc7
commit
ad1bd262b5
@ -7,9 +7,6 @@ os:
|
||||
environment:
|
||||
CTEST_OUPTUT_ON_FAILURE: ON
|
||||
|
||||
configuration:
|
||||
- Debug
|
||||
|
||||
branches:
|
||||
except:
|
||||
- gh-pages
|
||||
|
@ -27,7 +27,7 @@ namespace CLI {
|
||||
bool ExistingFile(std::string filename) {
|
||||
struct stat buffer;
|
||||
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) {
|
||||
std::cerr << "File does not exist: " << filename << std::endl;
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user