Skip to content

Conversation

wet34t
Copy link

@wet34t wet34t commented Nov 18, 2019

Basically, the idea is to allow users to configure hidapi without using iconv, as icvon may have dependencies that may not be supported

@Youw
Copy link

Youw commented Nov 18, 2019

Please see #373
You're welcome to open this PR at https://github.com/libusb/hidapi

@@ -390,7 +390,7 @@ static wchar_t *get_usb_string(libusb_device_handle *dev, uint8_t idx)
int len;
wchar_t *str = NULL;

#ifndef __ANDROID__ /* we don't use iconv on Android */
#if !defined(__ANDROID__) && !defined(NO_ICONV) /* we don't use iconv on Android */
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#if !defined(__ANDROID__) && !defined(NO_ICONV) /* we don't use iconv on Android */
#if !defined(__ANDROID__) && !defined(NO_ICONV) /* we don't use iconv on Android, or when it is explicitly disabled */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants