summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index 567f37be5b5..e9b68dbf200 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -47,6 +47,7 @@ typedef char _TCHAR;
#include <fstream>
using namespace std;
+#include "time.h"
#include <map>
#include <string>
#include <vector>
@@ -86,3 +87,13 @@ typedef struct _OWS {
char string[400];
} *OWS;
+extern ofstream problems;
+
+// not threadsafe
+inline ofstream& problem() {
+ time_t t;
+ time(&t);
+ string now(ctime(&t),0,20);
+ problems << now;
+ return problems;
+}