KDE/kdelibs/win/include/msvc

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Apr 12 20:15:55 CEST 2006


SVN commit 529195 by chehrlic:

instead fixing the symptoms of a problem it's better to fix the problem...

CCMAIL: kde-buildsystem at kde.org

 M  +1 -5      sys/stat.h  
 M  +0 -18     unistd.h  


--- trunk/KDE/kdelibs/win/include/msvc/sys/stat.h #529194:529195
@@ -32,9 +32,7 @@
 extern "C" {
 #endif
 
-#if !defined _STAT_H_ && !defined _INC_DIRECT
-
-#define	_IFMT		0170000	// type of file 
+#define     _IFMT	0170000	// type of file 
 #define		_IFDIR	0040000	// directory 
 #define		_IFCHR	0020000	// character special 
 #define		_IFBLK	0060000	// block special 
@@ -75,8 +73,6 @@
 #define	S_ISLNK(m)	(((m)&_IFMT) == _IFLNK)
 #define	S_ISSOCK(m)	(((m)&_IFMT) == _IFSOCK)
 
-#endif
-
 KDEWIN32_EXPORT int lstat( const char *__path, struct stat *__buf);
 KDEWIN32_EXPORT int lstat64( const char *__path, struct stat64 *__buf);
 
--- trunk/KDE/kdelibs/win/include/msvc/unistd.h #529194:529195
@@ -49,24 +49,6 @@
 #define	W_OK	2
 #define	X_OK	1 
 
-/* + from <sys/stat.h>: */
-#define	_IFMT		0170000	/* type of file */
-#define		_IFDIR	0040000	/* directory */
-#define		_IFCHR	0020000	/* character special */
-#define		_IFBLK	0060000	/* block special */
-#define		_IFREG	0100000	/* regular */
-#define		_IFLNK	0120000	/* symbolic link */
-#define		_IFSOCK	0140000	/* socket */
-#define		_IFIFO	0010000	/* fifo */
-
-#define	S_ISBLK(m)	(((m)&_IFMT) == _IFBLK)
-#define	S_ISCHR(m)	(((m)&_IFMT) == _IFCHR)
-#define	S_ISDIR(m)	(((m)&_IFMT) == _IFDIR)
-#define	S_ISFIFO(m)	(((m)&_IFMT) == _IFIFO)
-#define	S_ISREG(m)	(((m)&_IFMT) == _IFREG)
-#define	S_ISLNK(m)	(((m)&_IFMT) == _IFLNK)
-#define	S_ISSOCK(m)	(((m)&_IFMT) == _IFSOCK)
-
 #ifndef STDOUT_FILENO
 #define STDOUT_FILENO 1
 #endif


More information about the Kde-buildsystem mailing list