index 62121da67176936e5bf6d40f8b7caaa6f0d5c182..bf3547a2cd18bd94895b14de72a29b007950fa06 100644 (file)
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/path.c,v 1.76 2009年01月01日 17:24:04 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.77 2009年04月03日 11:52:08 mha Exp $
*
*-------------------------------------------------------------------------
*/
{
while (*s1 && *s2)
{
+#ifndef WIN32
if (*s1 != *s2 &&
+#else
+ /* On windows, paths are case-insensitive */
+ if (pg_tolower(*s1) != pg_tolower(*s2) &&
+#endif
!(IS_DIR_SEP(*s1) && IS_DIR_SEP(*s2)))
return (int) *s1 - (int) *s2;
s1++, s2++;