From 518ac3ebe1d6ad18d782ff6a18004e3ee061c09e Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 4 Jul 2024 11:54:15 +0900 Subject: [PATCH] parser: Enable existing codepath for OSX The Unix functions/headers used in parser for getting files/dirs from the given positional arguments are also available in OSX (theoretically), so they are now enabled for OSX platforms. TODO: Add getting files/dirs code for the Windows platform. --- src/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser.c b/src/parser.c index b54bcdd..5d0b2e4 100644 --- a/src/parser.c +++ b/src/parser.c @@ -24,6 +24,7 @@ #include "platforms.h" #if SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_LINUX || \ + SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_MAC || \ SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_COSMOPOLITAN #include #include @@ -251,6 +252,7 @@ SDArchiverLinkedList *simple_archiver_parsed_to_filenames( SDArchiverHashMap *hash_map = simple_archiver_hash_map_init(); int hash_map_sentinel = 1; #if SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_COSMOPOLITAN || \ + SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_MAC || \ SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_LINUX for (char **iter = parsed->working_files; iter && *iter; ++iter) { struct stat st;