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:
parent
2170b60cc7
commit
ad1bd262b5
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user