diff -r 84c73902f727 -r f4282e4db9f7 file.cpp --- a/file.cpp Mon Oct 22 09:50:03 2007 +0000 +++ b/file.cpp Thu Dec 06 18:30:29 2007 +0000 @@ -8,9 +8,8 @@ #include "file.h" #include "process.h" -// Avoid full inclusion of io.h by just defining mktemp's prototype here. #if defined(Q_OS_WIN32) -extern "C" char *_mktemp(char *fmt); +#include "mkdtemp.h" #include #endif @@ -150,12 +149,7 @@ p[i]=s.at(i).latin1(); p[bytes]=0; -#if defined(Q_OS_WIN32) - // There's no mkdtemp on VCEE. - QString r=_mktemp(p); -#else QString r=mkdtemp (p); -#endif if (r.isEmpty()) ok=false; free (p); return r;