diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-02-11 23:29:31 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-02-11 23:29:31 +0000 |
commit | ce01ce03aa3048a3622c3e6cf79c6660e9fa257c (patch) | |
tree | 0ee9531a19ef1728ff70fcc5af1ee223d42b581e /lib | |
parent | 6ba9da3c0c15cfa2410282373c844eca4d2f3daa (diff) | |
download | netpbm-mirror-ce01ce03aa3048a3622c3e6cf79c6660e9fa257c.tar.gz netpbm-mirror-ce01ce03aa3048a3622c3e6cf79c6660e9fa257c.tar.xz netpbm-mirror-ce01ce03aa3048a3622c3e6cf79c6660e9fa257c.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pm.h | 2 | ||||
-rw-r--r-- | lib/pmfileio.c | 5 |
2 files changed, 3 insertions, 4 deletions
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 |