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 Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -130,4 +128,3 @@ void FileAttributes(const char* path)
|
||||
cRc);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -98,4 +96,3 @@ void DeleteFiles(const char* path)
|
||||
HDelete(refNum, dirId, str255);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#include <Files.h>
|
||||
#include <MacTypes.h>
|
||||
#include <stdint.h>
|
||||
@@ -103,4 +101,3 @@ void DirectoryDepth(const char* path)
|
||||
|
||||
printf("\tCreated %d levels of directory hierarchy\n", pos);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -113,4 +111,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 Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -102,4 +100,3 @@ void MillionFiles(const char* path)
|
||||
|
||||
printf("\tCreated %d files\n", pos);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -312,5 +310,3 @@ void Fragmentation(const char* path, size_t clusterSize)
|
||||
wRc,
|
||||
cRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_ALIASES_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <Aliases.h>
|
||||
#endif
|
||||
@@ -175,4 +173,3 @@ void Links(const char* path)
|
||||
|
||||
printf("pos = %d, rc = %d, wRc = %d, cRc = %d, oRc = %d, aRc = %d\n", pos, rc, wRc, cRc, oRc, aRc);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS definitions.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#ifndef AARU_FSTESTER_SETTER_MACINTOSH_H
|
||||
#define AARU_FSTESTER_SETTER_MACINTOSH_H
|
||||
|
||||
@@ -50,5 +48,3 @@ enum
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#include <Gestalt.h>
|
||||
#include <MacTypes.h>
|
||||
#include <stdint.h>
|
||||
@@ -74,4 +72,3 @@ void GetOsInfo()
|
||||
if(!rc) { printf("Running under Classic.\n"); }
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,11 +27,8 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void FilePermissions(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -297,4 +295,3 @@ void ResourceFork(const char* path)
|
||||
rRc2,
|
||||
rRc3);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,11 +27,8 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#include "../include/defs.h"
|
||||
|
||||
void Sparse(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#if defined(HAVE_FILE_TYPES_AND_CREATORS_H) || !defined(HAVE_MULTIVERSE_H)
|
||||
#include <FileTypesAndCreators.h>
|
||||
#endif
|
||||
@@ -126,4 +124,3 @@ void Timestamps(const char* path)
|
||||
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", str255, rc, wRc, cRc, tRc);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#include <Files.h>
|
||||
#include <Gestalt.h>
|
||||
#include <MacTypes.h>
|
||||
@@ -145,5 +143,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
|
||||
default: printf("unknown id 0x%04X\n", fsId); break;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,11 +27,8 @@ Contains Mac OS code.
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(macintosh)
|
||||
|
||||
#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