Skip to content

Commit 40f45df

Browse files
committed
review findings
1 parent 6710d00 commit 40f45df

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/utils/fluid_sys.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
#include <android/log.h>
4040
#endif
4141

42-
#ifdef __MINGW32__
43-
#include <_mingw.h>
44-
#endif
45-
4642
/* WIN32 HACK - Flag used to differentiate between a file descriptor and a socket.
4743
* Should work, so long as no SOCKET or file descriptor ends up with this bit set. - JG */
4844
#ifdef _WIN32
@@ -1672,8 +1668,7 @@ int fluid_file_read(void *buf, fluid_long_long_t count, FILE *fd)
16721668

16731669
int fluid_file_seek(FILE *fd, fluid_long_long_t ofs, int whence)
16741670
{
1675-
// See here for the macro definitions: https://github.com/mingw-w64/mingw-w64/blob/a125b9ec1d96ff282155f2344f7d6eb50bf43c02/mingw-w64-headers/crt/_mingw_mac.h#L50-L61
1676-
#if defined(__MINGW32__) && defined(_M_IX86)
1671+
#if defined(__MINGW32__) && defined(__i386__)
16771672
// Some older versions of MinGW i686 report incorrect values for _ftelli64(). This is problematic,
16781673
// because _fseeki64() below would use these incorrect values when seeking with SEEK_CUR,
16791674
// resulting in incorrect file positions. So we need to work around this by doing the SEEK_CUR

0 commit comments

Comments
 (0)