diff --git a/windows/platform.h b/windows/platform.h index 7e2227b7..2af9b8c4 100644 --- a/windows/platform.h +++ b/windows/platform.h @@ -66,6 +66,7 @@ struct Filename { char *cpath, *utf8path; }; Filename *filename_from_wstr(const wchar_t *str); +const wchar_t *filename_to_wstr(const Filename *fn); FILE *f_open(const Filename *filename, const char *mode, bool isprivate); #ifndef SUPERSEDE_FONTSPEC_FOR_TESTING diff --git a/windows/utils/filename.c b/windows/utils/filename.c index 8f4c53af..fd494869 100644 --- a/windows/utils/filename.c +++ b/windows/utils/filename.c @@ -47,6 +47,11 @@ const char *filename_to_str(const Filename *fn) return fn->cpath; /* FIXME */ } +const wchar_t *filename_to_wstr(const Filename *fn) +{ + return fn->wpath; +} + bool filename_equal(const Filename *f1, const Filename *f2) { /* wpath is primary: two filenames refer to the same file if they