file.cpp
changeset 624 4ffc47ae27e4
parent 606 84c73902f727
child 633 dad2c8993342
     1.1 --- a/file.cpp	Fri Nov 09 12:07:20 2007 +0000
     1.2 +++ b/file.cpp	Fri Nov 09 12:07:21 2007 +0000
     1.3 @@ -8,9 +8,8 @@
     1.4  #include "file.h"
     1.5  #include "process.h"
     1.6  
     1.7 -// Avoid full inclusion of io.h by just defining mktemp's prototype here.
     1.8  #if defined(Q_OS_WIN32)
     1.9 -extern "C" char *_mktemp(char *fmt);
    1.10 +#include "mkdtemp.h"
    1.11  #include <windows.h>
    1.12  #endif
    1.13  
    1.14 @@ -150,12 +149,7 @@
    1.15  		p[i]=s.at(i).latin1();
    1.16  	p[bytes]=0;	
    1.17  
    1.18 -#if defined(Q_OS_WIN32)
    1.19 -    // There's no mkdtemp on VCEE.
    1.20 -    QString r=_mktemp(p);
    1.21 -#else
    1.22  	QString r=mkdtemp (p);
    1.23 -#endif
    1.24  	if (r.isEmpty()) ok=false;
    1.25  	free (p);
    1.26  	return r;