Skip to content

Commit

Permalink
fix: use extern keyword explicitly in func decl inside func def body
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Nov 15, 2024
1 parent 5384982 commit f90fcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carbon_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ char *carbon_fs_get_bin_directory(void) {
dir[1] = '\\';
}
#elif defined(__linux__)
CARBON_API isz readlink(const char *, char *, usz);
extern isz readlink(const char *, char *, usz);
usz len = readlink("/proc/self/exe", dir, sizeof(dir));
if (len > 0) {
for (usz i = len;; --i) {
Expand Down

0 comments on commit f90fcae

Please sign in to comment.