mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Add separate "struct stat" definition XSTAT_TYPE to make overriding XSTAT easier.
This commit is contained in:
@ -579,6 +579,10 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#define XS_ISREG(s) S_ISREG(s)
|
#define XS_ISREG(s) S_ISREG(s)
|
||||||
#define SEPARATOR_CHAR ':'
|
#define SEPARATOR_CHAR ':'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef XSTAT_TYPE
|
||||||
|
#define XSTAT_TYPE struct XSTAT
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -598,7 +602,7 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
WIN32_FIND_DATAA FindFileData;
|
WIN32_FIND_DATAA FindFileData;
|
||||||
HANDLE hFind;
|
HANDLE hFind;
|
||||||
struct XSTAT s;
|
XSTAT_TYPE s;
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
struct fs_dirent entry;
|
struct fs_dirent entry;
|
||||||
struct fs_dir_t dir;
|
struct fs_dir_t dir;
|
||||||
@ -619,7 +623,7 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#else
|
#else
|
||||||
struct dirent* entry;
|
struct dirent* entry;
|
||||||
DIR* dir;
|
DIR* dir;
|
||||||
struct XSTAT s;
|
XSTAT_TYPE s;
|
||||||
#endif
|
#endif
|
||||||
char name[MAX_FILENAME_SZ];
|
char name[MAX_FILENAME_SZ];
|
||||||
} ReadDirCtx;
|
} ReadDirCtx;
|
||||||
|
Reference in New Issue
Block a user