Windows: Output an error message on calls to libusb_get_pollfds()
authorPete Batard <pbatard@gmail.com>
Wed, 14 Dec 2011 02:18:10 +0000 (21:18 -0500)
committerPeter Stuge <peter@stuge.se>
Wed, 8 Feb 2012 13:46:17 +0000 (14:46 +0100)
Signed-off-by: Michael Plante <michael.plante@gmail.com>
libusb/io.c

index 58bdcdf..c4b3635 100644 (file)
@@ -2397,6 +2397,8 @@ out:
        usbi_mutex_unlock(&ctx->pollfds_lock);
        return (const struct libusb_pollfd **) ret;
 #else
+       usbi_err(ctx, "external polling of libusb's internal descriptors "\
+               "is not yet supported on Windows platforms");
        return NULL;
 #endif
 }