From ce01ce03aa3048a3622c3e6cf79c6660e9fa257c Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 11 Feb 2012 23:29:31 +0000 Subject: Fix compile bugs from a few minutes ago git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1635 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pm.h | 2 +- lib/pmfileio.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/pm.h b/lib/pm.h index 21efea20..88f61522 100644 --- a/lib/pm.h +++ b/lib/pm.h @@ -86,7 +86,7 @@ extern "C" { We're ignoring S_IREAD now to see if anyone misses it. If there are still users that need it, we can handle it here. */ -#if WIN32 +#ifdef WIN32 #define PM_S_IWUSR _S_IWRITE #define PM_S_IRUSR _S_IREAD #else diff --git a/lib/pmfileio.c b/lib/pmfileio.c index 585388c2..abcb05cf 100644 --- a/lib/pmfileio.c +++ b/lib/pmfileio.c @@ -123,16 +123,15 @@ tempFileOpenFlags(void) { | O_CREAT | O_RDWR #ifndef WIN32 - O_EXCL + | O_EXCL #endif #ifdef WIN32 - O_BINARY + | O_BINARY #endif ; return retval; } -, S_IRUSR | S_IWUSR -- cgit 1.4.1