Commit a98b6206 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

Use FC_PATH_MAX to fix build on Windows

parent 7b293e32
......@@ -126,7 +126,7 @@ FcConfigFini (void)
static FcChar8 *
FcConfigRealPath(const FcChar8 *path)
char resolved_name[PATH_MAX+1];
char resolved_name[FC_PATH_MAX+1];
char *resolved_ret;
if (!path)
......@@ -135,7 +135,7 @@ FcConfigRealPath(const FcChar8 *path)
#ifndef _WIN32
resolved_ret = realpath((const char *) path, resolved_name);
if (GetFullPathNameA ((LPCSTR) path, PATH_MAX, resolved_name, NULL) == 0)
if (GetFullPathNameA ((LPCSTR) path, FC_PATH_MAX, resolved_name, NULL) == 0)
fprintf (stderr, "Fontconfig warning: GetFullPathNameA failed.\n");
return NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment