forked from bartvdbraak/blender
wrapped S_ISREG and S_ISDIR with a define to suppress compiler
complaints about redefinitions. These occur now that Python 2.2 is included.
This commit is contained in:
parent
d48f993c55
commit
4950e0e74b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user