S_ISDIR is defined for mingw gcc but not visual c++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a4febe7799
commit
1be936380f
1 changed files with 2 additions and 0 deletions
|
|
@ -22,8 +22,10 @@ char cvsroot_misc_c[] = "$Id$";
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
#ifndef S_ISDIR
|
||||||
#define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR)
|
#define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
static char *fake_version = 0;
|
static char *fake_version = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue