mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Add missing definitions for old 32-bit Windows compilers.
This commit is contained in:
@@ -29,6 +29,10 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
#include "win32.h"
|
||||
|
||||
#ifndef FILE_ATTRIBUTE_OFFLINE
|
||||
#define FILE_ATTRIBUTE_OFFLINE 0x1000
|
||||
#endif
|
||||
|
||||
const char* compressedAttributeText = "This file is compressed.\n";
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -46,4 +46,8 @@ typedef struct _WINNT_FILE_ZERO_DATA_INFORMATION
|
||||
LARGE_INTEGER BeyondFinalZero;
|
||||
} WINNT_FILE_ZERO_DATA_INFORMATION, *PWINNT_FILE_ZERO_DATA_INFORMATION;
|
||||
|
||||
#ifndef FILE_SUPPORTS_SPARSE_FILES
|
||||
#define FILE_SUPPORTS_SPARSE_FILES 0x0000040
|
||||
#endif
|
||||
|
||||
#endif // AARU_FSTESTER_SETTER_SRC_WIN32_SPARSE_H_
|
||||
|
||||
@@ -23,7 +23,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "bugprone-reserved-identifier"
|
||||
#pragma ide diagnostic ignored "bugprone-reserved-identifier"
|
||||
|
||||
#ifndef AARU_FSTESTER_SETTER_SRC_WIN32_H
|
||||
#define AARU_FSTESTER_SETTER_SRC_WIN32_H
|
||||
@@ -55,7 +55,8 @@ static BOOL(WINAPI* WinGetVersionExA)(WIN_LPOSVERSIONINFOA);
|
||||
static DWORD dwMaxNameSize = MAX_PATH + 1;
|
||||
static DWORD dwFilePermissions = GENERIC_READ | GENERIC_WRITE;
|
||||
|
||||
#if defined(__aarch64__) || defined(_M_ARM64) || defined(__ia64__) || defined(_M_IA64) || defined(__x86_64__) || defined(__amd64) || defined(_M_AMD64) || defined(_M_X64)
|
||||
#if defined(__aarch64__) || defined(_M_ARM64) || defined(__ia64__) || defined(_M_IA64) || defined(__x86_64__) || \
|
||||
defined(__amd64) || defined(_M_AMD64) || defined(_M_X64)
|
||||
#define SIZE_T_FORMAT "%llu"
|
||||
#else
|
||||
#define SIZE_T_FORMAT "%u"
|
||||
|
||||
Reference in New Issue
Block a user