FcStat: change to FcChar8 for first arg
This shouldn't affect the ABI, makes FcStat more like the rest of the fontconfig API, and fixes warnings where we pass FcChar8* pointers in to this func from other places. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
e3a66c2937
commit
647569d029
|
@ -87,7 +87,7 @@ typedef __int64 INT64;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
FcStat (const char *file, struct stat *statb)
|
FcStat (const FcChar8 *file, struct stat *statb)
|
||||||
{
|
{
|
||||||
WIN32_FILE_ATTRIBUTE_DATA wfad;
|
WIN32_FILE_ATTRIBUTE_DATA wfad;
|
||||||
char full_path_name[MAX_PATH];
|
char full_path_name[MAX_PATH];
|
||||||
|
@ -136,7 +136,7 @@ FcStat (const char *file, struct stat *statb)
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int
|
int
|
||||||
FcStat (const char *file, struct stat *statb)
|
FcStat (const FcChar8 *file, struct stat *statb)
|
||||||
{
|
{
|
||||||
return stat ((char *) file, statb);
|
return stat ((char *) file, statb);
|
||||||
}
|
}
|
||||||
|
|
|
@ -545,7 +545,7 @@ FcPrivate void
|
||||||
FcDirCacheReference (FcCache *cache, int nref);
|
FcDirCacheReference (FcCache *cache, int nref);
|
||||||
|
|
||||||
FcPrivate int
|
FcPrivate int
|
||||||
FcStat (const char *file, struct stat *statb);
|
FcStat (const FcChar8 *file, struct stat *statb);
|
||||||
|
|
||||||
/* fccfg.c */
|
/* fccfg.c */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue