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:
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -87,5 +85,3 @@ void FileAttributes(const char* path)
|
||||
cRc);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS definitions
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#ifndef SETTER_SRC_DOS_ATTR_H_
|
||||
#define SETTER_SRC_DOS_ATTR_H_
|
||||
|
||||
@@ -114,5 +112,3 @@ static const dos_attr_tests_t dos_attrs[KNOWN_DOS_ATTRS] = {
|
||||
};
|
||||
|
||||
#endif // SETTER_SRC_DOS_ATTR_H_
|
||||
|
||||
#endif
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -79,5 +77,3 @@ void DeleteFiles(const char* path)
|
||||
unlink(filename);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -80,5 +78,3 @@ void DirectoryDepth(const char* path)
|
||||
|
||||
printf("\tCreated %d levels of directory hierarchy\n", pos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -84,5 +82,3 @@ void Filenames(const char* path)
|
||||
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", filenames[pos], rc, wRc, cRc);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -80,5 +78,3 @@ void MillionFiles(const char* path)
|
||||
|
||||
printf("\tCreated %d files\n", pos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
@@ -252,5 +250,3 @@ void Fragmentation(const char* path, size_t clusterSize)
|
||||
wRc,
|
||||
cRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,12 +27,8 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void Links(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -107,5 +105,3 @@ void GetOsInfo()
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,12 +27,8 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void FilePermissions(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,12 +27,8 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void ResourceFork(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,12 +27,8 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void Sparse(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -103,5 +101,3 @@ void Timestamps(const char* path)
|
||||
"\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", dos_times[i].filename, rc, wRc, cRc, tRc);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains DOS definitions
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#ifndef SETTER_SRC_DOS_TIME_H_
|
||||
#define SETTER_SRC_DOS_TIME_H_
|
||||
|
||||
@@ -73,5 +71,3 @@ static const dos_time_tests_t dos_times[KNOWN_DOS_TIMES] = {
|
||||
};
|
||||
|
||||
#endif // SETTER_SRC_DOS_TIME_H_
|
||||
|
||||
#endif
|
||||
@@ -27,8 +27,6 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include <dos.h>
|
||||
#include <errno.h>
|
||||
#include <io.h>
|
||||
@@ -85,5 +83,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
|
||||
*clusterSize = freeSpace.sectorsPerCluster * freeSpace.bytesPerSector;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,12 +27,8 @@ Contains DOS code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__DOS__) || defined(MSDOS)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void ExtendedAttributes(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user