1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Win32 can't have the same function coming from two library object files,

so we make is_absolute_path a macro so libpq doesn't use path.o.
This commit is contained in:
Bruce Momjian
2004-05-19 04:21:49 +00:00
parent 48eb73b556
commit f16874c23d
3 changed files with 31 additions and 25 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/path.c,v 1.9 2004/05/18 03:36:45 momjian Exp $
* $PostgreSQL: pgsql/src/port/path.c,v 1.10 2004/05/19 04:21:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -34,24 +34,6 @@ static void trim_trailing_separator(char *path);
}
/*
* is_absolute_path
*/
bool
is_absolute_path(const char *filename)
{
return filename[0] == '/'
#ifdef WIN32 /* WIN32 paths can either have forward or
* backward slashes */
|| filename[0] == '\\'
|| (isalpha(filename[0]) && filename[1] == ':'
&& (filename[2] == '\\' || filename[2] == '/'))
#endif
;
}
/*
* first_path_separator
*/