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 27dce11a979d40eab9a676cb699e0c44e2c9a540..5b9c6059d9fbfe840d0406a4ba0db8a3b93ce267 100644 (file)
 #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