Build error with mingw #121
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hi,
This commit fixes some build errors with mingw:
From
4d7b4d7c8e
Mon Sep 17 00:00:00 2001From: Dan Kegel dank@kegel.com
Date: Sun, 4 Jun 2017 19:19:55 -0700
Subject: [PATCH] Minimal tweaks to compile with Visual C 2015
However, this introduces the following build error in mingw due to case sensitive header file name:
| compilation terminated.
| In file included from ../pkgconf-1.3.7/libpkgconf/libpkgconf.h:19:0,
| from ../pkgconf-1.3.7/libpkgconf/audit.c:16:
| ../pkgconf-1.3.7/libpkgconf/stdinc.h:36:12: fatal error: BaseTsd.h: No such file or directory
| # include <BaseTsd.h>
| ^~~~~~~~~~~
Updating " BaseTsd.h" to " basetsd.h" works here for mingw.
"
Microsoft's documentation and usage itself is inconsistent:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx
uses "BaseTsd.h",
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384267%28v=vs.85%29.aspx
and
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384268%28v=vs.85%29.aspx
mention "Basetsd.h", the header file identifies itself as "basetsd.h" and the
header files in the Windows 7 SDK which include it use "basetsd.h" too (see
Fci.h, Fdi.h, MMC.h, MMC.idl, MSClus.h, MSCluc.idl etc.).
"
Further explanation is available here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675801
I merged your patch for it.