From 5cc8e4fc723b7b7d502cf91f245144f149c68d22 Mon Sep 17 00:00:00 2001 From: Jehan Date: Thu, 21 Nov 2019 21:26:31 +0100 Subject: Fix Win32 headers. For some reason, with mingw-w64 64-bit builds, this was just a warning. But building for 32-bit, linking was failing: > libappstream-glib/as-self-test.c:99: undefined reference to `GetFullPathNameA' > collect2: error: ld returned 1 exit status Adding the appropriate header fixes both the warning and error (since windows.h includes windef.h, it's actually a replacement). --- libappstream-glib/as-self-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c index eb4cd10..6ed3116 100644 --- a/libappstream-glib/as-self-test.c +++ b/libappstream-glib/as-self-test.c @@ -43,7 +43,7 @@ #ifndef _WIN32 #include #else -#include +#include #endif #define AS_TEST_WILDCARD_SHA1 "\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?" -- cgit v1.2.1