]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Oopsie with fileio_common.h
authorVictor Zhang <csv@meta.com>
Fri, 20 Dec 2024 01:48:00 +0000 (17:48 -0800)
committerVictor Zhang <csv@meta.com>
Fri, 20 Dec 2024 01:48:00 +0000 (17:48 -0800)
programs/fileio_common.h

index e073dc101730df34736b6ade490a4f60630e7ba4..274a6d10cf6c4d72d31d62b70a1c48016e18af3a 100644 (file)
 #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;