mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix few missing declarations -> static or add include file
This commit is contained in:
parent
390d0ab525
commit
07cf3fd32b
12 changed files with 19 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue