aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/rlc_lte_graph.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/rlc_lte_graph.c
parent01c2eecc350869b57017aad016a39fdaa0d7cdbd (diff)
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/rlc_lte_graph.c')
-rw-r--r--ui/gtk/rlc_lte_graph.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c
index 1b48c526b5..fa66ac26a8 100644
--- a/ui/gtk/rlc_lte_graph.c
+++ b/ui/gtk/rlc_lte_graph.c
@@ -343,7 +343,8 @@ static void graph_get_bounds(struct graph *);
static void graph_read_config(struct graph *);
static void rlc_lte_make_elmtlist(struct graph *);
-#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
@@ -2991,8 +2992,8 @@ static void rlc_lte_make_elmtlist(struct graph *g)
g->elists->next->elements = elements1;
}
-
-#if defined(_WIN32) && !defined(__MINGW32__)
+#if defined(_WIN32) && !defined(__MINGW32__) && (_MSC_VER < 1800)
+/* Starting VS2013, rint already defined in math.h. N o need to redefine */
/* replacement of Unix rint() for Windows */
static int rint(double x)
{
@@ -3007,4 +3008,3 @@ static int rint(double x)
return i;
}
#endif
-