Remove Windows-specific definition of S_ISDIR(). This should not be here;
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Apr 2009 15:31:50 +0000 (15:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Apr 2009 15:31:50 +0000 (15:31 +0000)
if there are any Windows configurations where port/win32.h fails to
provide the macro, it should be fixed in the latter file not here.

src/bin/psql/copy.c

index 67181be319399657bf698ac55955bb9be9dbfa66..57593d111c11f1462b5a0f3571a104c980efc1f9 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2009, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.79 2009/01/01 17:23:54 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.80 2009/04/26 15:31:50 tgl Exp $
  */
 #include "postgres_fe.h"
 #include "copy.h"
 #include "prompt.h"
 #include "stringutils.h"
 
-#if defined(WIN32) && !defined(S_ISDIR)
-#define __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask))
-#define S_ISDIR(mode)   __S_ISTYPE((mode), S_IFDIR)
-#endif
 
 /*
  * parse_slash_copy