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
This commit is contained in:
Doug Evans 1996-08-18 01:37:23 +00:00
parent 00290b64c4
commit a7521e654f
1 changed files with 5 additions and 1 deletions

View File

@ -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