aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-01-04 14:56:27 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-01-04 14:56:27 +0000
commitdeb4f08cb21d8a5306b325d811c3448b46ad18d0 (patch)
treedebe45890e10da566d54d23c05c9f7ce7ef8d9e1 /editcap.c
parent38fdbeeb7e31ca0916ec1626c0fc02629fba0e18 (diff)
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
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index cad8856506..870536fc50 100644
--- a/editcap.c
+++ b/editcap.c
@@ -149,7 +149,7 @@ abs_time_to_str_with_sec_resolution(const struct wtap_nstime *abs_time)
struct tm *tmp;
gchar *buf = g_malloc(16);
-#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 */