summaryrefslogtreecommitdiff
path: root/src/bin/psql/copy.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-06-07 22:24:46 +0000
committerBruce Momjian <bruce@momjian.us>2006-06-07 22:24:46 +0000
commit399a36a75d2d06bfdb91402713d408271b4833ba (patch)
treeb8391f6bda4680d37ac430c3270c67bde979d842 /src/bin/psql/copy.c
parent877e296306a2017a18fc7086e9742c8ee3e0a665 (diff)
Prepare code to be built by MSVC:
o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
Diffstat (limited to 'src/bin/psql/copy.c')
-rw-r--r--src/bin/psql/copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index ba89eb5b389..abf4b603422 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.64 2006/06/01 01:28:00 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.65 2006/06/07 22:24:45 momjian Exp $
*/
#include "postgres_fe.h"
#include "copy.h"
@@ -26,7 +26,7 @@
#include "prompt.h"
#include "stringutils.h"
-#if defined(WIN32) && (!defined(__MINGW32__))
+#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