Remove preprocessor guards by OS. Project should now only include the needed files.

This commit is contained in:
2021-03-14 14:38:51 +00:00
parent 9aa53cad57
commit 4b75cd3e71
95 changed files with 0 additions and 402 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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