about summary refs log tree commit diff
path: root/lib/pmfileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pmfileio.c')
-rw-r--r--lib/pmfileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pmfileio.c b/lib/pmfileio.c
index abcb05cf..1d7d2643 100644
--- a/lib/pmfileio.c
+++ b/lib/pmfileio.c
@@ -122,10 +122,10 @@ tempFileOpenFlags(void) {
     retval = 0
         | O_CREAT
         | O_RDWR
-#ifndef WIN32
+#if !MSVCRT
         | O_EXCL
 #endif
-#ifdef WIN32
+#if MSVCRT
         | O_BINARY
 #endif
         ;