From 8e315bd8ae75f98c3281cc8c5c74df396a5d4687 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 22 Feb 2018 19:18:59 +0100 Subject: [PATCH] tests/date.c: include config.h to expose Vista+ macros date.c uses SUBLANG_LITHUANIAN_LITHUANIA which is Vista+ Include config.h so that _WIN32_WINNT is defined and the newer macros are exposed. This fixes the build under MinGW. https://bugzilla.gnome.org/show_bug.cgi?id=793729 --- glib/tests/date.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/tests/date.c b/glib/tests/date.c index b3d78347d..e05a709d3 100644 --- a/glib/tests/date.c +++ b/glib/tests/date.c @@ -4,6 +4,8 @@ /* We are testing some deprecated APIs here */ #define GLIB_DISABLE_DEPRECATION_WARNINGS +#include "config.h" + #include "glib.h" #include