[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30351] trunk/blender/source/blender/ blenlib/BLI_winstuff.h: S_ISDIR and S_ISREG were checking completely wrong for directory and regular file bits .

Nathan Letwory nathan at letworyinteractive.com
Thu Jul 15 00:16:57 CEST 2010


Revision: 30351
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30351
Author:   jesterking
Date:     2010-07-15 00:16:56 +0200 (Thu, 15 Jul 2010)

Log Message:
-----------
S_ISDIR and S_ISREG were checking completely wrong for directory and regular file bits.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_winstuff.h

Modified: trunk/blender/source/blender/blenlib/BLI_winstuff.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_winstuff.h	2010-07-14 22:06:10 UTC (rev 30350)
+++ trunk/blender/source/blender/blenlib/BLI_winstuff.h	2010-07-14 22:16:56 UTC (rev 30351)
@@ -74,10 +74,10 @@
 #define MAXPATHLEN MAX_PATH
 
 #ifndef S_ISREG
-#define S_ISREG(x) ((x&S_IFMT) == S_IFREG)
+#define S_ISREG(x) (((x)&_S_IFREG) == _S_IFREG)
 #endif
 #ifndef S_ISDIR
-#define S_ISDIR(x) ((x&S_IFMT) == S_IFDIR)
+#define S_ISDIR(x) (((x)&_S_IFDIR) == _S_IFDIR)
 #endif
 
 /* defines for using ISO C++ conformant names */





More information about the Bf-blender-cvs mailing list