mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Remove preprocessor guards by OS. Project should now only include the needed files.
This commit is contained in:
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -225,5 +222,3 @@ void FileAttributes(const char* path)
|
||||
|
||||
FreeLibrary(advapi32);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -106,5 +103,3 @@ void DeleteFiles(const char* path)
|
||||
DeleteFileA(filename);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -107,5 +104,3 @@ void DirectoryDepth(const char* path)
|
||||
|
||||
printf("\tCreated %ld levels of directory hierarchy\n", pos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -121,5 +118,3 @@ void Filenames(const char* path)
|
||||
printf("\tFile name = \"%s\", rc = %lu, wRc = %lu, cRc = %lu\n", filenames[pos], rc, wRc, cRc);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -108,5 +105,3 @@ void MillionFiles(const char* path)
|
||||
|
||||
printf("\tCreated %lu files\n", pos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -363,5 +360,3 @@ void Fragmentation(const char* path, size_t clusterSize)
|
||||
wRc,
|
||||
cRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -216,5 +213,3 @@ void Links(const char* path)
|
||||
|
||||
FreeLibrary(kernel32);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -200,5 +197,3 @@ void GetOsInfo()
|
||||
|
||||
FreeLibrary(kernel32);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include "../include/defs.h"
|
||||
@@ -39,5 +36,3 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
void FilePermissions(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -346,5 +343,3 @@ void ResourceFork(const char* path)
|
||||
wRc,
|
||||
cRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -305,5 +302,3 @@ void Sparse(const char* path)
|
||||
sRc,
|
||||
zRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -141,5 +138,3 @@ void Timestamps(const char* path)
|
||||
tRc);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -351,5 +348,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
|
||||
|
||||
if(func) FreeLibrary(kernel32);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 32-bit and 64-bit Windows declarations
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#ifndef AARU_FSTESTER_SETTER_WIN32_H
|
||||
#define AARU_FSTESTER_SETTER_WIN32_H
|
||||
|
||||
@@ -61,5 +58,3 @@ static DWORD dwMaxNameSize = MAX_PATH + 1;
|
||||
static DWORD dwFilePermissions = GENERIC_READ | GENERIC_WRITE;
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,9 +29,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
// ReSharper disable CppJoinDeclarationAndAssignment
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
#if defined(__WINDOWS__) || defined(__TOS_WIN__) || defined(__WIN32__) || defined(_WIN64) || defined(_WIN32) || \
|
||||
defined(__NT__)
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
|
||||
#include <windows.h>
|
||||
@@ -354,5 +351,3 @@ void ExtendedAttributes(const char* path)
|
||||
|
||||
FreeLibrary(ntdll);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user