diff options
Diffstat (limited to 'src/fontfile/fontfile.c')
-rw-r--r-- | src/fontfile/fontfile.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fontfile/fontfile.c b/src/fontfile/fontfile.c index d32c4a1..82c6fd9 100644 --- a/src/fontfile/fontfile.c +++ b/src/fontfile/fontfile.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/lib/font/fontfile/fontfile.c,v 1.1.4.3 2003/12/06 13:24:23 kaleb Exp $ */ +/* $XdotOrg: xc/lib/font/fontfile/fontfile.c,v 1.2 2004/04/23 18:44:21 eich Exp $ */ /* $Xorg: fontfile.c,v 1.4 2001/02/09 02:04:03 xorgcvs Exp $ */ /* @@ -34,6 +34,9 @@ in this Software without prior written authorization from The Open Group. /* $NCDXorg: @(#)fontfile.c,v 1.6 1991/07/02 17:00:46 lemke Exp $ */ #include "fntfilst.h" +#ifdef WIN32 +#include <ctype.h> +#endif /* * Map FPE functions to renderer functions @@ -49,9 +52,9 @@ int FontFileNameCheck (char *name) { #ifndef NCD -#ifdef __UNIXOS2__ +#if defined(__UNIXOS2__) || defined(WIN32) /* OS/2 uses D:/... as a path name for fonts, so accept this as a valid - * path if it starts with a letter and a colon + * path if it starts with a letter and a colon. Same applies for WIN32 */ if (isalpha(*name) && name[1]==':') return TRUE; |