commit | 9eb3551141f17ad87af5762ee15d2a71ab188ce3 | [log] [tgz] |
---|---|---|
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | Tue Jul 26 17:01:45 2011 -0400 |
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | Tue Jul 26 17:01:45 2011 -0400 |
tree | 160af48b544ae8294ddff301ff309c614ef4116f | |
parent | 1a17f368f5adf0d14f9ce54bfd2809608333f7b7 [diff] | |
parent | c6945882dc38ea75dd8feb4b90ba11cf46d69bdb [diff] |
Merge branch 'master' into v4 Conflicts: qcmsint.h
diff --git a/iccread.c b/iccread.c index e1c9c9a..36b7011 100644 --- a/iccread.c +++ b/iccread.c
@@ -1188,3 +1188,17 @@ } return profile; } + +#ifdef _WIN32 +/* Unicode path version */ +qcms_profile* qcms_profile_from_unicode_path(const wchar_t *path) +{ + qcms_profile *profile = NULL; + FILE *file = _wfopen(path, L"rb"); + if (file) { + profile = qcms_profile_from_file(file); + fclose(file); + } + return profile; +} +#endif