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 Linux implementations
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
|
||||
#include <errno.h>
|
||||
#include <linux/fs.h>
|
||||
#include <stdio.h>
|
||||
@@ -115,5 +113,3 @@ void LinuxFileAttributes(const char* path)
|
||||
printf("\t%s, rc = %d, wRc = %d, sRc = %d, cRc = %d\n", linux_attrs[i].description, rc, wRc, sRc, cRc);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -30,8 +30,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#ifndef SETTER_LINUX_H
|
||||
#define SETTER_LINUX_H
|
||||
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
|
||||
void LinuxExtendedAttributes(const char* path);
|
||||
void LinuxSparse(const char* path);
|
||||
void LinuxFileAttributes(const char* path);
|
||||
@@ -231,5 +229,3 @@ static unsigned char IconEA[3516] = {
|
||||
0x00};
|
||||
|
||||
#endif
|
||||
|
||||
#endif // SETTER_LINUX_H
|
||||
@@ -27,8 +27,6 @@ Contains Linux implementations
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
|
||||
#include "../include/consts.h"
|
||||
#define _GNU_SOURCE
|
||||
#include <errno.h>
|
||||
@@ -152,5 +150,3 @@ void LinuxSparse(const char* path)
|
||||
cRc,
|
||||
zRc);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -27,8 +27,6 @@ Contains Linux implementations
|
||||
Copyright (C) 2011-2021 Natalia Portillo
|
||||
*****************************************************************************/
|
||||
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||
|
||||
#include <errno.h>
|
||||
#include <features.h>
|
||||
#include <stdio.h>
|
||||
@@ -105,5 +103,3 @@ void LinuxExtendedAttributes(const char* path)
|
||||
printf("\tFile with an extended attribute called \"com.ibm.os2.icon\", rc = %d, cRc = %d\n", rc, cRc);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user