Commit a7521e65 by Doug Evans

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
parent 00290b64
......@@ -4626,9 +4626,13 @@ 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
if (filename[0] == DIR_SEPARATOR) return 1;
......
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