drop support for WDK's Windows XP targets

* Die, XP, die!!!
* Also fix a Coverity warning in checksum.c
This commit is contained in:
Pete Batard 2016-03-24 12:46:44 +00:00
parent 2c90a06668
commit e4bb1a6eb8
7 changed files with 13 additions and 33 deletions

View file

@ -39,21 +39,8 @@
/* Define to 1 if you have the `fseeko64' function. */
#define HAVE_FSEEKO64 1
#if defined(_MSC_VER)
/* The equivalent of fseeko64 for MSVC is _fseeki64, however this */
/* is not available on XP when build with WDK (but _lseeki64 is) */
#if defined(DDKBUILD)
#include <windows.h>
#include <stdio.h>
#include <io.h>
static __inline int fseeko64(FILE *stream, __int64 offset, int origin) {
fflush(stream); /* VERY IMPORTANT! */
return (lseek64(_fileno(stream), offset, origin) == -1LL)?-1:0;
}
#else
/* The equivalent of fseeko64 for MSVC is _fseeki64 */
#define fseeko64 _fseeki64
#endif
#endif
/* Define to 1 if you have the `ftruncate' function. */
/* #undef HAVE_FTRUNCATE */