diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-25 15:19:59 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-25 15:19:59 +0000 |
commit | 8f2463e0f1a3d04fa34fa2da07191eb5c97d915e (patch) | |
tree | bffd9bcf3f8f9dccb042e66e02e280fa93a6648c /navit/file.c | |
parent | cd8b9e184f8fee3f9a794bcccae0eaf2ab2c9d65 (diff) | |
download | navit-8f2463e0f1a3d04fa34fa2da07191eb5c97d915e.tar.gz |
Fix:Core:MSVC fixes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4023 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/file.c')
-rw-r--r-- | navit/file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/file.c b/navit/file.c index c2391ab9d..1177973d6 100644 --- a/navit/file.c +++ b/navit/file.c @@ -261,6 +261,10 @@ file_create_url(char *url) } #endif +#ifndef S_ISDIR +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif + int file_is_dir(char *name) { struct stat buf; |