1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Oopsie with fileio_common.h

This commit is contained in:
Victor Zhang
2024-12-19 17:48:00 -08:00
parent 10b9d81909
commit c7af0428c6

View File

@ -16,13 +16,6 @@
#include "platform.h"
#include "timefn.h" /* UTIL_getTime, UTIL_clockSpanMicro */
#if !(defined(_MSC_VER) && _MSC_VER >= 1400) \
&& !(!defined(__64BIT__) && (PLATFORM_POSIX_VERSION >= 200112L)) \
&& !(defined(__MINGW32__) && !defined(__STRICT_ANSI__) && !defined(__NO_MINGW_LFS) && defined(__MSVCRT__)) \
&& (defined(_WIN32) && !defined(__DJGPP__))
# include <windows.h>
#endif
/*-*************************************
* Macros
***************************************/
@ -92,6 +85,7 @@ extern UTIL_time_t g_displayClock;
# define LONG_SEEK fseeko64
# define LONG_TELL ftello64
#elif defined(_WIN32) && !defined(__DJGPP__)
# include <windows.h>
static int LONG_SEEK(FILE* file, __int64 offset, int origin) {
LARGE_INTEGER off;
DWORD method;