From deb4f08cb21d8a5306b325d811c3448b46ad18d0 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Fri, 4 Jan 2013 14:56:27 +0000 Subject: Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8105 : Allow use of huges values for localtime / ctime / gmtime with MSVC 2008 or later svn path=/trunk/; revision=46930 --- ui/gtk/summary_dlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/gtk/summary_dlg.c') diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c index 648663825d..078a3210eb 100644 --- a/ui/gtk/summary_dlg.c +++ b/ui/gtk/summary_dlg.c @@ -116,7 +116,7 @@ time_to_string(char *string_buff, gulong string_buff_size, time_t ti_time) { struct tm *ti_tm; -#ifdef _MSC_VER +#if (defined _WIN32) && (_MSC_VER < 1500) /* calling localtime() on MSVC 2005 with huge values causes it to crash */ /* XXX - find the exact value that still does work */ /* XXX - using _USE_32BIT_TIME_T might be another way to circumvent this problem */ -- cgit v1.2.3