Use 64bit file ops even on 32bit systems

This commit is contained in:
cpq committed 2021-01-26 17:43:31 +00:00
1 parent 5b4b7f7dc5
commit 5118355732
10 files changed
+58 -23

No files matched your search

+10
View File
@@ -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)