Call Darwin code to set file attributes.

This commit is contained in:
2021-03-30 02:09:27 +01:00
parent 095d8f827c
commit 3784fab2f2
2 changed files with 5 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
void DarwinGetOsInfo();
void DarwinPrintStatfsFlags(uint32_t flags);
void DarwinResourceFork(const char* path);
void DarwinFileAttributes(const char* path);
void DarwinExtendedAttributes(const char* path);
#endif // SETTER_SRC_DARWIN_DARWIN_H_

View File

@@ -26,11 +26,15 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
#include "../linux/linux.h"
#elif defined(__APPLE__) && defined(__MACH__)
#include "../darwin/darwin.h"
#endif
void FileAttributes(const char* path)
{
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
LinuxFileAttributes(path);
#elif defined(__APPLE__) && defined(__MACH__)
DarwinFileAttributes(path);
#endif
}