From: Stephen Seo Date: Thu, 4 Jul 2024 02:54:15 +0000 (+0900) Subject: parser: Enable existing codepath for OSX X-Git-Tag: 1.0~84 X-Git-Url: https://git.seodisparate.com/stephenseo/static/static/git-logo.png?a=commitdiff_plain;h=518ac3ebe1d6ad18d782ff6a18004e3ee061c09e;p=SimpleArchiver 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. --- 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;