mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Use 64bit file ops even on 32bit systems
This commit is contained in:
1 parent
5b4b7f7dc5
commit
5118355732
10 files changed
+58
-23
No files matched your search
+10
@@ -23,6 +23,16 @@ double mg_time(void);
|
||||
unsigned long mg_millis(void);
|
||||
void mg_usleep(unsigned long usecs);
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
#ifdef _WIN32
|
||||
typedef struct _stati64 mg_stat_t;
|
||||
#define mg_stat(a, b) _stati64((a), (b))
|
||||
#else
|
||||
typedef struct stat mg_stat_t;
|
||||
#define mg_stat(a, b) stat((a), (b))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define mg_htons(x) mg_ntohs(x)
|
||||
#define mg_htonl(x) mg_ntohl(x)
|
||||
|
||||
|
||||
Reference in new issue
Block a user