diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-06-07 19:07:16 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2013-06-10 00:16:36 +0100 |
commit | 511ed18228dd097dfe6d5c6fd926eaea24435f64 (patch) | |
tree | feac0f60d3f98ef91aa7413d227fe144cd3f2207 /msvc/libusb_dll_wince.vcproj | |
parent | 3604998dbec67ec098c802416d19cc7e1e93ee02 (diff) | |
download | libusb-511ed18228dd097dfe6d5c6fd926eaea24435f64.tar.gz |
Core: Add a libusb_strerror() function
This patch adds the much requested libusb_strerror() function, taking into
account all issues people raised wrt previous attempts.
Criteria / Decisions underlying this implementation:
- Must support translated messages
- Must not use gettext as that does not work well in combination with Windows
(when building with Visual C, or for Windows CE)
- API compatible with FreeBSD and various patched libusb-s floating around
- KISS:
- Do not add any (other) library dependencies
- Do not try to deal with message encodings (iconv), simply always return UTF-8
making encoding the problem of the application using libusb_strerror.
- Defaults to English, so apps which don't want translated messages,
don't need to do anything special
- Defaults to English (with pure ASCII messages), so apps which don't
call libusb_setlocale() don't need to worry about encoding
Diffstat (limited to 'msvc/libusb_dll_wince.vcproj')
-rw-r--r-- | msvc/libusb_dll_wince.vcproj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/msvc/libusb_dll_wince.vcproj b/msvc/libusb_dll_wince.vcproj index 4238a4d..822404c 100644 --- a/msvc/libusb_dll_wince.vcproj +++ b/msvc/libusb_dll_wince.vcproj @@ -1161,6 +1161,10 @@ > </File> <File + RelativePath="..\libusb\strerror.c" + > + </File> + <File RelativePath="..\libusb\sync.c" > </File> |