[glib] tests/date.c: include config.h to expose Vista+ macros
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests/date.c: include config.h to expose Vista+ macros
- Date: Tue, 13 Mar 2018 12:07:39 +0000 (UTC)
commit 8e315bd8ae75f98c3281cc8c5c74df396a5d4687
Author: Christoph Reiter <creiter src gnome org>
Date: Thu Feb 22 19:18:59 2018 +0100
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 <stdio.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]