summaryrefslogtreecommitdiff
path: root/msvc/libusb_static_2012.vcxproj
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-06-07 19:07:16 +0100
committerPete Batard <pete@akeo.ie>2013-06-10 00:16:36 +0100
commit511ed18228dd097dfe6d5c6fd926eaea24435f64 (patch)
treefeac0f60d3f98ef91aa7413d227fe144cd3f2207 /msvc/libusb_static_2012.vcxproj
parent3604998dbec67ec098c802416d19cc7e1e93ee02 (diff)
downloadlibusb-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_static_2012.vcxproj')
-rw-r--r--msvc/libusb_static_2012.vcxproj1
1 files changed, 1 insertions, 0 deletions
diff --git a/msvc/libusb_static_2012.vcxproj b/msvc/libusb_static_2012.vcxproj
index 7baa2ae..88605ba 100644
--- a/msvc/libusb_static_2012.vcxproj
+++ b/msvc/libusb_static_2012.vcxproj
@@ -137,6 +137,7 @@
<ClCompile Include="..\libusb\hotplug.c" />
<ClCompile Include="..\libusb\io.c" />
<ClCompile Include="..\libusb\os\poll_windows.c" />
+ <ClCompile Include="..\libusb\strerror.c" />
<ClCompile Include="..\libusb\sync.c" />
<ClCompile Include="..\libusb\os\threads_windows.c" />
<ClCompile Include="..\libusb\os\windows_usb.c" />