git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3728
ffa7fe5e-494d-0410-b361-
a75ebd5db220
#define _GLOB_H_
#ifndef HAVE_GLOB
-#ifdef __MINGW32__
+#if defined __MINGW32__ || defined _MSC_VER
typedef struct {
size_t gl_pathc; /* count of file names */
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_ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifndef _MSC_VER
#include <unistd.h>
+#endif /* _MSC_VER */
#include "wordexp.h"
#include "glob.h"