From: akashihi Date: Sat, 27 Nov 2010 12:54:07 +0000 (+0000) Subject: Fix:build:Made supplied wordexp compatible with MSVC X-Git-Tag: navit-0.5.0.5194svn~1467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36def9dba1c081d3d03f5fbf766b827c4e24f1f6;p=profile%2Fivi%2Fnavit.git Fix:build:Made supplied wordexp compatible with MSVC git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3728 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/support/wordexp/glob.h b/navit/navit/support/wordexp/glob.h index ad49bbf..17f43eb 100644 --- a/navit/navit/support/wordexp/glob.h +++ b/navit/navit/support/wordexp/glob.h @@ -2,7 +2,7 @@ #define _GLOB_H_ #ifndef HAVE_GLOB -#ifdef __MINGW32__ +#if defined __MINGW32__ || defined _MSC_VER typedef struct { size_t gl_pathc; /* count of file names */ @@ -13,7 +13,7 @@ typedef struct { int glob(const char *pattern, int flags, int (*errfunc)(const char *epath, int eerrno), glob_t *pglob); void globfree(glob_t *pglob); -#endif +#endif /* defined __MINGW32__ || defined _MSC_VER */ #endif #endif /* _GLOB_H_ */ diff --git a/navit/navit/support/wordexp/wordexp.c b/navit/navit/support/wordexp/wordexp.c index 868b482..d901b13 100644 --- a/navit/navit/support/wordexp/wordexp.c +++ b/navit/navit/support/wordexp/wordexp.c @@ -7,7 +7,9 @@ #include #include #include +#ifndef _MSC_VER #include +#endif /* _MSC_VER */ #include "wordexp.h" #include "glob.h"