aboutsummaryrefslogtreecommitdiff
path: root/stdlib/paths.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-29 23:14:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-29 23:14:31 -0400
commit9ebb039a81f5ea06e97d84ef7ee447da9dfca204 (patch)
treedc229247feb19ddec117e3c680dd1c13a40dbdd1 /stdlib/paths.c
parent3e019df9f429caef4b05947cc70652634ebb2467 (diff)
Fix up some GCC compiler flag options for LTO and inlining
Diffstat (limited to 'stdlib/paths.c')
-rw-r--r--stdlib/paths.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/paths.c b/stdlib/paths.c
index 8f6e1359..2453394d 100644
--- a/stdlib/paths.c
+++ b/stdlib/paths.c
@@ -106,7 +106,7 @@ public Path_t Path$cleanup(Path_t path)
return cleaned_up;
}
-static inline Path_t Path$_expand_home(Path_t path)
+static INLINE Path_t Path$_expand_home(Path_t path)
{
if (Text$starts_with(path, Path("~/"))) {
Path_t after_tilde = Text$slice(path, I(2), I(-1));
@@ -158,7 +158,7 @@ public bool Path$exists(Path_t path)
return (stat(Text$as_c_string(path), &sb) == 0);
}
-static inline int path_stat(Path_t path, bool follow_symlinks, struct stat *sb)
+static INLINE int path_stat(Path_t path, bool follow_symlinks, struct stat *sb)
{
path = Path$_expand_home(path);
const char *path_str = Text$as_c_string(path);