From 9ebb039a81f5ea06e97d84ef7ee447da9dfca204 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 29 Oct 2024 23:14:31 -0400 Subject: Fix up some GCC compiler flag options for LTO and inlining --- stdlib/paths.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/paths.c') 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); -- cgit v1.2.3