add a special macro for comparing time_t values to fix unit test compilation on platforms with 64 bit time_t (such as FreeBSD 6.2 apparently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -376,11 +376,13 @@ wxDateTime::Country wxDateTime::ms_country = wxDateTime::Country_Unknown;
|
||||
|
||||
// debugger helper: shows what the date really is
|
||||
#ifdef __WXDEBUG__
|
||||
extern const wxChar *wxDumpDate(const wxDateTime* dt)
|
||||
extern const char *wxDumpDate(const wxDateTime* dt)
|
||||
{
|
||||
static wxChar buf[128];
|
||||
static char buf[128];
|
||||
|
||||
wxStrcpy(buf, dt->Format(_T("%Y-%m-%d (%a) %H:%M:%S")));
|
||||
wxString fmt(dt->Format("%Y-%m-%d (%a) %H:%M:%S"));
|
||||
wxStrncpy(buf, fmt + " (" + dt->GetValue().ToString() + " ticks)",
|
||||
WXSIZEOF(buf));
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user