/*
* Windows sparse interface.
*/
+#if defined(__MINGW32__) && !defined(FSCTL_QUERY_ALLOCATED_RANGES)
+#define FSCTL_QUERY_ALLOCATED_RANGES 0x940CF
+typedef struct {
+ LARGE_INTEGER FileOffset;
+ LARGE_INTEGER Length;
+} FILE_ALLOCATED_RANGE_BUFFER;
+#endif
static int
setup_sparse(struct archive_read_disk *a,
};
#if defined(_WIN32) && !defined(__CYGWIN__)
-
+#include <winioctl.h>
/*
* Create a sparse file on Windows.
*/
+#if !defined(PATH_MAX)
#define PATH_MAX MAX_PATH
+#endif
#if !defined(__BORLANDC__)
#define getcwd _getcwd
#endif