Use HAVE_VERSION_INFO so that multiple archs can take advantage of a build number and date

This commit is contained in:
Steve Checkoway
2003-08-02 12:51:25 +00:00
parent ea6352e60b
commit 1e5b735bcd
5 changed files with 17 additions and 4 deletions
@@ -8,3 +8,4 @@
#define NEED_ACOSF
#define BACKTRACE_LOOKUP_METHOD_ATOS
#define BACKTRACE_METHOD_POWERPC_DARWIN
#define HAVE_VERSION_INFO
@@ -383,9 +383,11 @@ static void do_backtrace(void **buf, size_t size)
void CrashSignalHandler( int signal )
{
#if !defined(BACKTRACE_METHOD_POWERPC_DARWIN)
/* Don't dump a debug file if the user just hit ^C. */
if( signal == SIGINT || signal == SIGTERM )
return;
#endif
static bool received = false;
@@ -22,6 +22,10 @@
#include "archutils/Darwin/Crash.h"
#endif
#if defined(HAVE_VERSION_INFO)
extern const unsigned version_num;
#endif
struct BacktraceNames
{
CString Symbol, File;
@@ -339,8 +343,11 @@ static void child_process()
exit(1);
}
fprintf(CrashDump, "StepMania crash report\n");
fprintf(CrashDump, "--------------------------------------\n");
fprintf(CrashDump, "StepMania crash report");
#if defined(HAVE_VERSION_INFO)
fprintf(CrashDump, " -- build %u", version_num);
#endif
fprintf(CrashDump, "\n--------------------------------------\n");
fprintf(CrashDump, "\n");
CString Signal;
@@ -40,5 +40,8 @@
#define NEED_TRUNCF
#define NEED_ROUNDF
/* For RageLog */
#define HAVE_VERSION_INFO
#endif