#if !defined (__MINGW32__) && !defined (__MSVCRT__) #include #else #include "em_glob.h" /* emulate glob on Windows */ #endif #include #include "ant.h" void unlinkWildCard (const char *wildcard) { /* unlink all the temp files */ glob_t globbuf; unsigned int loop2; globbuf.gl_offs = 0; glob (wildcard, GLOB_DOOFFS, NULL, &globbuf); for (loop2 = 0; loop2 < globbuf.gl_pathc; loop2++) { unlink (globbuf.gl_pathv [loop2]); } globfree (&globbuf); }