port: S_IWUSR and S_IX* are not needed. Remove them.

Francois Gouget fgouget at free.fr
Sat Dec 13 05:03:30 CST 2008


---

When compiling on Unix they are provided by the Unix headers. And when 
compiling with MinGW or MSVC they are not used.

 include/wine/port.h |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index df34174..fd37698 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -174,10 +174,6 @@ struct statvfs
 # define S_ISREG(mod) (((mod) & _S_IFMT) == _S_IFREG)
 #endif
 
-#ifndef S_IWUSR
-# define S_IWUSR 0
-#endif
-
 /* So we open files in 64 bit access mode on Linux */
 #ifndef O_LARGEFILE
 # define O_LARGEFILE 0
@@ -191,16 +187,6 @@ struct statvfs
 # define O_BINARY 0
 #endif
 
-#if !defined(S_IXUSR) && defined(S_IEXEC)
-# define S_IXUSR S_IEXEC
-#endif
-#if !defined(S_IXGRP) && defined(S_IEXEC)
-# define S_IXGRP S_IEXEC
-#endif
-#if !defined(S_IXOTH) && defined(S_IEXEC)
-# define S_IXOTH S_IEXEC
-#endif
-
 
 /****************************************************************
  * Constants
-- 
1.5.6.5




More information about the wine-patches mailing list