Small fixies for windows compilation
This commit is contained in:
parent
9b7261aae0
commit
5c8b8f2616
|
@ -99,7 +99,7 @@ endif
|
|||
# libcasio, defined here.
|
||||
|
||||
DEP_libcasio_CFLAGS := -I include
|
||||
DEP_libcasio_LIBS := -L build -lcasio
|
||||
DEP_libcasio_LIBS := -L build -lcasio $(if $(FOR_WINDOWS), -lws2_32, )
|
||||
|
||||
# standard math library.
|
||||
|
||||
|
|
|
@ -70,8 +70,8 @@ CASIO_EXTERN int CASIO_EXPORT casio_openusb_libusb
|
|||
# if defined(_WIN16) || defined(_WIN32) || defined(_WIN64) \
|
||||
|| defined(__WINDOWS__)
|
||||
CASIO_EXTERN int CASIO_EXPORT casio_openusb_windows
|
||||
OF((casio_stream_t **casio__stream,
|
||||
int casio__bus, int casio__address));
|
||||
OF((casio_stream_t **casio__stream
|
||||
/*int casio__bus, int casio__address*/));
|
||||
CASIO_EXTERN int CASIO_EXPORT casio_opencom_windows
|
||||
OF((casio_stream_t **casio__stream, const char *casio__path));
|
||||
# else
|
||||
|
|
|
@ -59,6 +59,7 @@ int CASIO_EXPORT casio_openusb_libusb(casio_stream_t **stream,
|
|||
|
||||
/* Get device list. */
|
||||
|
||||
msg((ll_info, "Getting the device list"));
|
||||
device_count = libusb_get_device_list(context, &device_list);
|
||||
if (device_count < 0) {
|
||||
msg((ll_fatal, "couldn't get device list."));
|
||||
|
|
Loading…
Reference in New Issue