mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00:00
Implement rmdir & sleep func instead macros
PUBLISHED_FROM=62c73e5fb4f70e2b5b8824ce092012508640b173
This commit is contained in:
1 parent
66b23b11b0
commit
7f20c41dd5
2 files changed
+23
-2
No files matched your search
+3
-2
@@ -223,14 +223,12 @@
|
||||
#endif
|
||||
#define snprintf _snprintf
|
||||
#define vsnprintf _vsnprintf
|
||||
#define sleep(x) Sleep((x) *1000)
|
||||
#define to64(x) _atoi64(x)
|
||||
#if !defined(__MINGW32__) && !defined(__MINGW64__)
|
||||
#define popen(x, y) _popen((x), (y))
|
||||
#define pclose(x) _pclose(x)
|
||||
#define fileno _fileno
|
||||
#endif
|
||||
#define rmdir _rmdir
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
#define fseeko(x, y, z) _fseeki64((x), (y), (z))
|
||||
#else
|
||||
@@ -321,6 +319,9 @@ typedef struct _stati64 cs_stat_t;
|
||||
#define MG_NET_IF MG_NET_IF_SOCKET
|
||||
#endif
|
||||
|
||||
int rmdir(const char *dirname);
|
||||
unsigned int sleep(unsigned int seconds);
|
||||
|
||||
#endif /* CS_PLATFORM == CS_P_WINDOWS */
|
||||
#endif /* CS_COMMON_PLATFORMS_PLATFORM_WINDOWS_H_ */
|
||||
#ifdef MG_MODULE_LINES
|
||||
|
||||
Reference in new issue
Block a user