(svn r23566) -Fix (r23565): hopefully fix MSVC compilation error

This commit is contained in:
rubidium 2011-12-17 12:19:22 +00:00
parent 15906ca874
commit 5d37791157
1 changed files with 1 additions and 2 deletions

View File

@ -930,7 +930,6 @@ struct FileWriter {
/** Make sure the file is closed. */ /** Make sure the file is closed. */
virtual ~FileWriter() virtual ~FileWriter()
{ {
printf("close %s %p\n", this->filename, this->fh);
/* If we weren't closed an exception was thrown, so remove the termporary file. */ /* If we weren't closed an exception was thrown, so remove the termporary file. */
if (fh != NULL) { if (fh != NULL) {
fclose(this->fh); fclose(this->fh);
@ -1023,7 +1022,7 @@ struct HeaderFileWriter : HeaderWriter, FileWriter {
} else { } else {
/* else rename tmp.xxx into filename */ /* else rename tmp.xxx into filename */
#if defined(WIN32) || defined(WIN64) #if defined(WIN32) || defined(WIN64)
unlink(filename); unlink(this->real_filename);
#endif #endif
if (rename(this->filename, this->real_filename) == -1) error("rename() failed"); if (rename(this->filename, this->real_filename) == -1) error("rename() failed");
} }