summaryrefslogtreecommitdiff
path: root/ui/gtk/sctp_graph_dlg.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-10-26 21:04:53 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-10-26 21:04:53 +0000
commitef24e09f5d529559bf9e73f70b8434da1c951e80 (patch)
tree71f0bfe64d96080030db7053353485e15594c053 /ui/gtk/sctp_graph_dlg.c
parent01c2eecc350869b57017aad016a39fdaa0d7cdbd (diff)
downloadwireshark-ef24e09f5d529559bf9e73f70b8434da1c951e80.tar.gz
From robionekenobi via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9328 :
Suppress some VS2013 warnings when compiling gtk ui svn path=/trunk/; revision=52880
Diffstat (limited to 'ui/gtk/sctp_graph_dlg.c')
-rw-r--r--ui/gtk/sctp_graph_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/gtk/sctp_graph_dlg.c b/ui/gtk/sctp_graph_dlg.c
index c3597067bf..e8004c34f6 100644
--- a/ui/gtk/sctp_graph_dlg.c
+++ b/ui/gtk/sctp_graph_dlg.c
@@ -133,7 +133,8 @@ static guint32 max_tsn=0, min_tsn=0;
static void sctp_graph_set_title(struct sctp_udata *u_data);
static void create_draw_area(GtkWidget *box, struct sctp_udata *u_data);
static GtkWidget *zoomout_bt;
-#if defined(_WIN32) && !defined(__MINGW32__)
+#if defined(_WIN32) && !defined(__MINGW32__) && (_MSC_VER < 1800)
+/* Starting VS2013, rint already defined in math.h. No need to redefine */
static int rint (double ); /* compiler template for Windows */
#endif
@@ -1857,7 +1858,8 @@ create_graph(guint16 dir, struct sctp_analyse* userdata)
}
}
-#if defined(_WIN32) && !defined(__MINGW32__)
+#if defined(_WIN32) && !defined(__MINGW32__) && (_MSC_VER < 1800)
+/* Starting VS2013, rint already defined in math.h. No need to redefine */
/* replacement of Unix rint() for Windows */
static int
rint (double x)