]> git.seodisparate.com - SimpleArchiver/commitdiff
"platforms.h" include should be before its usage
authorStephen Seo <seo.disparate@gmail.com>
Wed, 3 Jul 2024 11:01:03 +0000 (20:01 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 3 Jul 2024 11:01:19 +0000 (20:01 +0900)
src/parser.c

index 409d0b2897ff04ac62bdee1ac64835b9394d33ff..ffaba0cb11727141de15e21cdb61339dfe000120 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "platforms.h"
 #if SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_LINUX
 #include <dirent.h>
 #include <sys/stat.h>
@@ -31,7 +32,6 @@
 #include "data_structures/hash_map.h"
 #include "data_structures/linked_list.h"
 #include "parser_internal.h"
-#include "platforms.h"
 
 /// Gets the first non "./"-like character in the filename.
 unsigned int simple_archiver_parser_internal_filename_idx(