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,9 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
||||
!defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -74,5 +71,3 @@ void GetOsInfo()
|
||||
|
||||
printf("\tMaximum path is %d bytes.\n", pathLen[0]);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
||||
!defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -147,5 +144,3 @@ void ExtendedAttributes(const char* path)
|
||||
|
||||
printf("\tFile with icon = \"%s\", rc = %d, wRc = %d, cRc = %d\n", "ICON", rc, wRc, cRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 32-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
|
||||
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -79,5 +76,3 @@ void GetOsInfo()
|
||||
|
||||
printf("\tMaximum path is %lu bytes.\n", pathLen[0]);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 32-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
|
||||
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -45,5 +42,3 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
void ExtendedAttributes(const char* path)
|
||||
{ /* TODO: Implement */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -93,5 +91,3 @@ void DeleteFiles(const char* path)
|
||||
__os2_delete(&filename);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -86,5 +84,3 @@ void DirectoryDepth(const char* path)
|
||||
|
||||
printf("\tCreated %d levels of directory hierarchy\n", pos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -97,5 +95,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 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -94,5 +92,3 @@ void MillionFiles(const char* path)
|
||||
|
||||
printf("\tCreated %lu files\n", pos);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,8 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -326,5 +324,3 @@ void Fragmentation(const char* path, size_t clusterSize)
|
||||
wRc,
|
||||
cRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 32-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) && \
|
||||
(defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#include "include/defs.h"
|
||||
|
||||
void Links(const char* path)
|
||||
@@ -37,5 +34,3 @@ void Links(const char* path)
|
||||
/* Do nothing, not supported by target operating system */
|
||||
// TODO: Check if can ask WPS to make Shadow
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,6 @@ Contains 16-bit OS/2 definitions
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__OS2__) || defined(__os2__))
|
||||
#ifndef AARU_FSTESTER_SETTER_OS2_H
|
||||
#define AARU_FSTESTER_SETTER_OS2_H
|
||||
|
||||
@@ -92,5 +91,3 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,10 +27,7 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#include "include/defs.h"
|
||||
|
||||
void FilePermissions(const char* path) { /* Do nothing, not supported by target operating system */ }
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,10 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if((defined(__OS2__) || defined(__os2__)) && !defined(__DOS__)
|
||||
|
||||
#include "include/defs.h"
|
||||
|
||||
void ResourceFork(const char* path) { /* Do nothing, not supported by target operating system */ }
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
||||
!defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -45,5 +42,3 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
void Sparse(const char* path)
|
||||
{ /* Do nothing, not supported by target operating system */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
||||
!defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -678,5 +675,3 @@ void Timestamps(const char* path)
|
||||
|
||||
printf("\tFile name = \"%s\", rc = %d, wRc = %d, cRc = %d, tRc = %d\n", "Y2K_TIME", rc, wRc, cRc, tRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,9 +27,6 @@ Contains 16-bit OS/2 code
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if(defined(__I86__) || defined(__i86__) || defined(_M_I86)) && (defined(__OS2__) || defined(__os2__)) && \
|
||||
!defined(__DOS__)
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSFILEMGR
|
||||
|
||||
@@ -138,5 +135,3 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
|
||||
|
||||
free(pfsInfo);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user