crt: Add Di* functions to lib32 and lib64 newdev.def
newdev.h declares DiInstallDevice, DiInstallDriverA/W, DiRollbackDriver,
DiShowUpdateDevice (all Vista+) and DiUninstallDevice (Win7+), but the
lib32 and lib64 import libraries do not export them, so any program
calling them fails to link with "undefined reference". The lib64 def
file was generated in 2007 from a pre-Vista newdev.dll, and the lib32
one only ever contained UpdateDriverForPlugAndPlayDevices{A,W}.
libarm32/newdev.def, generated from the Windows RT 8.1 DLL, already
lists all of these functions.
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/lib32/newdev.def b/mingw-w64-crt/lib32/newdev.def
index d75d694..ad1efb5 100644
--- a/mingw-w64-crt/lib32/newdev.def
+++ b/mingw-w64-crt/lib32/newdev.def
@@ -1,5 +1,11 @@
LIBRARY newdev.dll
EXPORTS
+DiInstallDevice@24
+DiInstallDriverA@16
+DiInstallDriverW@16
+DiRollbackDriver@20
+DiShowUpdateDevice@20
+DiUninstallDevice@20
UpdateDriverForPlugAndPlayDevicesA
UpdateDriverForPlugAndPlayDevicesW
UpdateDriverForPlugAndPlayDevicesA@20==UpdateDriverForPlugAndPlayDevicesA
diff --git a/mingw-w64-crt/lib64/newdev.def b/mingw-w64-crt/lib64/newdev.def
index 157d61e..cdcadfd 100644
--- a/mingw-w64-crt/lib64/newdev.def
+++ b/mingw-w64-crt/lib64/newdev.def
@@ -8,6 +8,12 @@
EXPORTS
ClientSideInstallW
DevInstallW
+DiInstallDevice
+DiInstallDriverA
+DiInstallDriverW
+DiRollbackDriver
+DiShowUpdateDevice
+DiUninstallDevice
InstallDevInst
InstallDevInstEx
InstallNewDevice