]> sigrok.org Git - libsigrok.git/blobdiff - src/usb.c
uni-t-ut32x: use ASCII literals in packet parser, symbols for magic numbers
[libsigrok.git] / src / usb.c
index 8073f869dbdacf3f5a9842d6ee516a23507e7773..8a8f0ca56dfff018bd6d6828cd267c0c1e5f4a98 100644 (file)
--- a/src/usb.c
+++ b/src/usb.c
@@ -184,7 +184,7 @@ static LIBUSB_CALL void usb_pollfd_added(libusb_os_handle fd,
                return;
 
        pollfd = g_slice_new(GPollFD);
-#ifdef G_OS_WIN32
+#ifdef _WIN32
        events = G_IO_IN;
 #endif
        pollfd->fd = (gintptr)fd;
@@ -509,7 +509,7 @@ SR_PRIV int usb_get_port_path(libusb_device *dev, char *path, int path_len)
 }
 
 /**
- * Check the USB configuration to determine if this device has a given 
+ * Check the USB configuration to determine if this device has a given
  * manufacturer and product string.
  *
  * @return TRUE if the device's configuration profile strings