/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#include <config.h>
+#if defined(_WIN32) && defined(__GNUC__)
+#include <io.h>
+#endif
#include <stdio.h>
#include <time.h>
#include "tel.h"
if (rename(tmp_filename, annfil) != 0)
logerror("can't move temporary telegram file %s "
"to telegram file %s", tmp_filename, annfil);
+ } else {
+ if (remove(tmp_filename) < 0)
+ logerror("can't delete telegram file %s", tmp_filename);
}
}