From: Behdad Esfahbod Date: Fri, 21 Aug 2009 17:41:41 +0000 (-0400) Subject: Bug 22037 - No Fonts installed on a default install on Windows Server 2003 X-Git-Tag: 2.7.2~4 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=f33a23133ecbcc981745051f7c34d96b33b57447 Bug 22037 - No Fonts installed on a default install on Windows Server 2003 Make it easy to install on older Windows --- diff --git a/src/fcxml.c b/src/fcxml.c index ef85a4f..840bdca 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -2087,7 +2087,11 @@ FcEndElement(void *userData, const XML_Char *name) { int rc; data = buffer; +#if _WIN32_WINNT >= 0x0500 rc = GetSystemWindowsDirectory (buffer, sizeof (buffer) - 20); +#else + rc = GetWindowsDirectory (buffer, sizeof (buffer) - 20); +#endif if (rc == 0 || rc > sizeof (buffer) - 20) { FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed");