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:
authorMaarten Gribnau <mail@maartengribnau.com>2002-12-02 01:41:22 +0300
committerMaarten Gribnau <mail@maartengribnau.com>2002-12-02 01:41:22 +0300
commit4950e0e74bfbf9537619e1e2566644f9fd6bcc53 (patch)
tree1bc84fea1e036f6cd9144e2993942e055904e929 /source/blender/blenlib
parentd48f993c55573b049f2fcc5ae8b720cd9a8e446e (diff)
wrapped S_ISREG and S_ISDIR with a define to suppress compiler
complaints about redefinitions. These occur now that Python 2.2 is included.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_winstuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h
index 735bdd7abf6..0c978f61be4 100644
--- a/source/blender/blenlib/BLI_winstuff.h
+++ b/source/blender/blenlib/BLI_winstuff.h
@@ -66,8 +66,12 @@
#define MAXPATHLEN MAX_PATH
+#ifndef S_ISREG
#define S_ISREG(x) ((x&S_IFMT) == S_IFREG)
+#endif
+#ifndef S_ISDIR
#define S_ISDIR(x) ((x&S_IFMT) == S_IFDIR)
+#endif
typedef unsigned int mode_t;