Fix redefinition of S_ISDIR() on MinGW
This commit is contained in:
parent
867f6902f3
commit
2214988c05
@ -27,9 +27,6 @@
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined __WIN32__ || defined _WIN32 || defined _Windows
|
||||
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
|
||||
#endif
|
||||
#include "lstring.h"
|
||||
#include "sc.h"
|
||||
#if defined LINUX || defined __FreeBSD__ || defined __OpenBSD__
|
||||
@ -40,6 +37,12 @@
|
||||
#include <alloc/fortify.h>
|
||||
#endif
|
||||
|
||||
#if defined __WIN32__ || defined _WIN32 || defined _Windows
|
||||
#if !defined S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* flags for litchar() */
|
||||
#define RAWMODE 1
|
||||
#define UTF8MODE 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user