summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehan <jehan@girinstud.io>2019-11-21 21:26:31 +0100
committerRichard Hughes <richard@hughsie.com>2019-11-25 17:48:52 +0000
commit5cc8e4fc723b7b7d502cf91f245144f149c68d22 (patch)
tree455a8e3c5e2c597c5a26d275ba134806669e92da
parent2e13dcc11de8c4da5822f51fd32f08917f012d09 (diff)
downloadappstream-glib-5cc8e4fc723b7b7d502cf91f245144f149c68d22.tar.gz
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).
-rw-r--r--libappstream-glib/as-self-test.c2
1 files changed, 1 insertions, 1 deletions
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 <fnmatch.h>
#else
-#include <windef.h>
+#include <windows.h>
#endif
#define AS_TEST_WILDCARD_SHA1 "\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?"