fix few missing declarations -> static or add include file

This commit is contained in:
Philippe Teuwen 2019-10-25 00:55:16 +02:00
commit 07cf3fd32b
12 changed files with 19 additions and 11 deletions

View file

@ -74,7 +74,8 @@ int fileExists(const char *filename) {
* @param filename
* @return
*/
bool is_regular_file(const char *filename) {
/*
static bool is_regular_file(const char *filename) {
#ifdef _WIN32
struct _stat st;
if (_stat(filename, &st) == -1)
@ -87,12 +88,14 @@ bool is_regular_file(const char *filename) {
#endif
return S_ISREG(st.st_mode) != 0;
}
*/
/**
* @brief checks if path is directory.
* @param filename
* @return
*/
bool is_directory(const char *filename) {
static bool is_directory(const char *filename) {
#ifdef _WIN32
struct _stat st;
if (_stat(filename, &st) == -1)