Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2010-07-15 02:16:56 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-07-15 02:16:56 +0400
commitaa15c8a5bfdb11bccd9927f9bb77808d55c4356e (patch)
treecb98789d8c6c3222ba252540d43a7c9ab2637446 /source/blender/blenlib/BLI_winstuff.h
parentad12866e1947f6723e0b6111f67cdabdbed33538 (diff)
S_ISDIR and S_ISREG were checking completely wrong for directory and regular file bits.
Diffstat (limited to 'source/blender/blenlib/BLI_winstuff.h')
-rw-r--r--source/blender/blenlib/BLI_winstuff.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h
index 957fdb2b017..e8689895735 100644
--- a/source/blender/blenlib/BLI_winstuff.h
+++ b/source/blender/blenlib/BLI_winstuff.h
@@ -74,10 +74,10 @@ extern "C" {
#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 */