summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2016-11-08 17:09:53 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-11-11 13:36:20 +0000
commitf4baf1512bd5691056e0bb2fcbef5d974d618342 (patch)
tree61caf926d26edfbc1e3fefc2ddc356af60dc6b02
parent04b7010308776cb5da4415f42f9a23eeae283f83 (diff)
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
-rw-r--r--tests/misc/netclock-replay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/netclock-replay.c b/tests/misc/netclock-replay.c
index 531bbe7381..54eeb31f5b 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 <stdio.h>
/* We need the internal netclock estimation function to (re)run the code on