Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libusb: allow hidapi to be configured without using iconv #447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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