fix few missing declarations -> static or add include file

This commit is contained in:
Philippe Teuwen committed 2019-10-25 00:55:16 +02:00
1 parent 390d0ab525
commit 07cf3fd32b
12 files changed
+19 -11

No files matched your search

+5 -2
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)