]> sigrok.org Git - libserialport.git/commitdiff
windows: Include proper GUID defining header to fix build.
authorMichael B. Trausch <redacted>
Sun, 7 Sep 2014 00:23:16 +0000 (20:23 -0400)
committerUwe Hermann <redacted>
Sun, 7 Sep 2014 16:51:04 +0000 (18:51 +0200)
The initguid.h header must appear early or it does not have
an effect, at least on cross-build from Linux.

libserialport_internal.h

index 9d582f8e72fbef5a1009b2f31d234ddedd737be1..031ffeffde76150fcb3b5e6d4af4426dad19a114 100644 (file)
 #include <stdio.h>
 #include <stdarg.h>
 #ifdef _WIN32
+#include <initguid.h>
+
 #include <windows.h>
 #include <tchar.h>
 #include <setupapi.h>
 #include <cfgmgr32.h>
 #include <usbioctl.h>
+#include <usbiodef.h>
 #else
 #include <limits.h>
 #include <termios.h>