From: Doug Evans Date: Sun, 18 Aug 1996 01:37:23 +0000 (+0000) Subject: cccp.c (absolute_filename): Drive specifiers make the pathname absolute in cygwin32. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7521e654fd38143f944873d55bee9be615e480b;p=gcc.git cccp.c (absolute_filename): Drive specifiers make the pathname absolute in cygwin32. * cccp.c (absolute_filename): Drive specifiers make the pathname absolute in cygwin32. From-SVN: r12655 --- diff --git a/gcc/cccp.c b/gcc/cccp.c index ecc4b3b65cd..eff9c915e25 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -4626,8 +4626,12 @@ static int absolute_filename (filename) char *filename; { -#if defined (__MSDOS__) || defined (_WIN32) +#if defined (__MSDOS__) || (defined (_WIN32) && !defined (__CYGWIN32__)) if (isalpha (filename[0]) && filename[1] == ':') filename += 2; +#endif +#if defined (__CYGWIN32__) + /* At present, any path that begins with a drive spec is absolute. */ + if (isalpha (filename[0]) && filename[1] == ':') return 1; #endif if (filename[0] == '/') return 1; #ifdef DIR_SEPARATOR