diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2010-03-08 07:35:06 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2010-03-08 07:35:06 +0000 |
commit | 978dd1f48f8e8760dcb8189e45e952a8bd567dec (patch) | |
tree | dae51ccc2e5642799351b2855d0d52fe889eb8a2 /Source | |
parent | 673ce4551e54c62f9d4494e791ec52211b39a056 (diff) | |
download | swig-978dd1f48f8e8760dcb8189e45e952a8bd567dec.tar.gz |
Windows portability fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Swig/misc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Swig/misc.c b/Source/Swig/misc.c index 7085f3b4a..9a2a33278 100644 --- a/Source/Swig/misc.c +++ b/Source/Swig/misc.c @@ -20,6 +20,10 @@ char cvsroot_misc_c[] = "$Id$"; #include <sys/types.h> #include <sys/stat.h> +#ifdef _WIN32 +#include <direct.h> +#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) +#endif static char *fake_version = 0; @@ -170,7 +174,7 @@ String *Swig_new_subdirectory(String *basedirectory, String *subdirectory) { } } else { #ifdef _WIN32 - int result = mkdir(Char(dir)); + int result = _mkdir(Char(dir)); #else int result = mkdir(Char(dir), 0777); #endif |