From 4950e0e74bfbf9537619e1e2566644f9fd6bcc53 Mon Sep 17 00:00:00 2001 From: Maarten Gribnau Date: Sun, 1 Dec 2002 22:41:22 +0000 Subject: [PATCH] wrapped S_ISREG and S_ISDIR with a define to suppress compiler complaints about redefinitions. These occur now that Python 2.2 is included. --- source/blender/blenlib/BLI_winstuff.h | 4 ++++ 1 file changed, 4 insertions(+) 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;