summaryrefslogtreecommitdiff
path: root/src/port/path.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-19 04:21:49 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-19 04:21:49 +0000
commitf16874c23daa3d565f2d418e6aeab8605ae633cb (patch)
treec38cd069ea376e99d8e55da1322cda7745cfc589 /src/port/path.c
parent48eb73b5563970549b2eb3649a45b0a7110bb2f5 (diff)
downloadpostgresql-f16874c23daa3d565f2d418e6aeab8605ae633cb.tar.gz
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.
Diffstat (limited to 'src/port/path.c')
-rw-r--r--src/port/path.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/port/path.c b/src/port/path.c
index 565f496173..a8f53bd895 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -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 $
*
*-------------------------------------------------------------------------
*/
@@ -35,24 +35,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
*/
char *