Various fixes for mingw

This commit is contained in:
Patrick Griffis
2018-03-05 19:25:08 -05:00
parent 9b8a7eaa01
commit e9b9ff9f38
13 changed files with 61 additions and 33 deletions

View File

@@ -59,8 +59,8 @@
#include "hexchatc.h"
/* Setting _FILE_OFFSET_BITS to 64 doesn't change lseek to use off64_t on Windows, so override lseek to the version that does */
#ifdef WIN32
#define lseek _lseeki64
#if defined(WIN32) && (!defined(__MINGW32__) && !defined(__MINGW64__))
#define lseek _lseeki64
#endif
/* interval timer to detect timeouts */