summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-04 20:31:49 +0000
committerrubidium <rubidium@openttd.org>2009-09-04 20:31:49 +0000
commita1f49db54dd71af71f664a2c6b1a8f8c33e3fb7f (patch)
tree0dda905be11b688ab0a753c5fe8a9b7e9f2a7985 /src/os
parente540385038efc5b06bc30939c42180e3b70e6398 (diff)
downloadopenttd-a1f49db54dd71af71f664a2c6b1a8f8c33e3fb7f.tar.xz
(svn r17416) -Codechange: move the build date/time 'determination' to rev.cpp as that's the file most likely to be regularly recompiled
Diffstat (limited to 'src/os')
-rw-r--r--src/os/windows/crashlog_win.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp
index f24d499dc..cf622fc52 100644
--- a/src/os/windows/crashlog_win.cpp
+++ b/src/os/windows/crashlog_win.cpp
@@ -292,7 +292,7 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
output += seprintf(output, last,
"*** OpenTTD Crash Report ***\r\n"
"Date: %d-%.2d-%.2d %.2d:%.2d:%.2d\r\n"
- "Build: %s (%d) built on " __DATE__ " " __TIME__ "\r\n",
+ "Build: %s (%d) built on %s\r\n",
time.wYear,
time.wMonth,
time.wDay,
@@ -300,7 +300,8 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
time.wMinute,
time.wSecond,
_openttd_revision,
- _openttd_revision_modified
+ _openttd_revision_modified,
+ _openttd_build_date
);
}
@@ -437,7 +438,8 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
MINIDUMP_EXCEPTION_INFORMATION mdei;
MINIDUMP_USER_STREAM userstream;
MINIDUMP_USER_STREAM_INFORMATION musi;
- char msg[] = "****** Built on " __DATE__ " " __TIME__ ". ******";
+ char msg[64];
+ seprintf(msg, lastof(msg), "****** Built on %s. ******", _openttd_build_date);
userstream.Type = LastReservedStream + 1;
userstream.Buffer = msg;