From cb9309f2a706edd640dfec0f4d466bcdc471ae46 Mon Sep 17 00:00:00 2001 From: Victor Toso Date: Tue, 8 Nov 2016 17:09:53 +0100 Subject: [PATCH] tests: Fix compile warning on mingw64 In file included from ../../libs/gst/net/gstntppacket.c:35:0, from netclock-replay.c:25: ../../config.h:546:0: error: "__MSVCRT_VERSION__" redefined [-Werror] #define __MSVCRT_VERSION__ 0x0601 In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/crtdefs.h:10:0, from /usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:9, from netclock-replay.c:21: /usr/x86_64-w64-mingw32/sys-root/mingw/include/_mingw.h:220:0: note: this is the location of the previous definition # define __MSVCRT_VERSION__ 0x0700 https://bugzilla.gnome.org/show_bug.cgi?id=774108 --- tests/misc/netclock-replay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/misc/netclock-replay.c b/tests/misc/netclock-replay.c index 531bbe7..54eeb31 100644 --- a/tests/misc/netclock-replay.c +++ b/tests/misc/netclock-replay.c @@ -18,6 +18,10 @@ * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include /* We need the internal netclock estimation function to (re)run the code on -- 2.7.4