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

View File

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

View File

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

View File

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