diff options
author | Maarten Gribnau <mail@maartengribnau.com> | 2002-12-02 01:41:22 +0300 |
---|---|---|
committer | Maarten Gribnau <mail@maartengribnau.com> | 2002-12-02 01:41:22 +0300 |
commit | 4950e0e74bfbf9537619e1e2566644f9fd6bcc53 (patch) | |
tree | 1bc84fea1e036f6cd9144e2993942e055904e929 /source/blender | |
parent | d48f993c55573b049f2fcc5ae8b720cd9a8e446e (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')
-rw-r--r-- | source/blender/blenlib/BLI_winstuff.h | 4 |
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; |