fx.io: fix linux compilation

This commit is contained in:
2026-05-29 20:19:55 +01:00
parent 7b546f6bbe
commit d9835cea0b
2 changed files with 16 additions and 21 deletions
+10 -3
View File
@@ -392,11 +392,18 @@ void path_fini(fx_object *obj, void *priv)
fx_string_unref(path->p_pathstr);
}
void path_to_string(const fx_object *obj, fx_stream *out)
static fx_status path_to_string(
const fx_value *obj,
fx_stream *out,
const char *format)
{
struct fx_path_p *path = fx_object_get_private(obj, FX_TYPE_PATH);
struct fx_path_p *path
= fx_object_get_private(obj->v_object, FX_TYPE_PATH);
fx_stream_write_cstr(out, fx_string_get_cstr(path->p_pathstr), NULL);
return fx_stream_write_cstr(
out,
fx_string_get_cstr(path->p_pathstr),
NULL);
}
/*** CLASS DEFINITION *********************************************************/