summaryrefslogtreecommitdiff
path: root/README_MSVC.txt
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-14 01:31:38 +0000
committerPete Batard <pbatard@gmail.com>2010-01-14 01:31:38 +0000
commita32c101a47825f3c523081137d972a619a359d34 (patch)
treeb5bbaaa56fd72063000d1853bca554a268095117 /README_MSVC.txt
parentff8fec009ecbdae5c488f784570639c054f9e778 (diff)
downloadlibusb-a32c101a47825f3c523081137d972a619a359d34.tar.gz
svn r52: MSVC compatibility update:
- changed ssize_t to int for libusb_get_device_list (do we really expect that many devices?). Also in lsusb.c - redefined inline to __inline in libusb.h - remove the unistd.h include for OS_WINDOWS - api/ vs ddk/ for ddk includes - changed variadics using ,fmt... to ,... and __VA_ARGS__ - list_for_each_entry now requires a type parameter - libusb_cpu_to_le16 as inline - time.h vs sys/time.h - harmonization of #ifdef vs #if defined() within individual files - defined an empty __drv_preferredFunction(func,why) before #include <cfgmgr32.h>, as it only applies to obsolete functions - excluded USB_HUB_CAPS redefinition from MSVC - new msvc top directory for includes (stdint.h inttypes.h and pthread) - new config_msvc.h file - new README_MSVC and MSVC project files - removed various warnings (signed/unsigned comparisons, cast, etc)
Diffstat (limited to 'README_MSVC.txt')
-rw-r--r--README_MSVC.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/README_MSVC.txt b/README_MSVC.txt
new file mode 100644
index 0000000..d35fa87
--- /dev/null
+++ b/README_MSVC.txt
@@ -0,0 +1,15 @@
+To compile libusb 1.0 using MSVC 8 or later:
+
+- download the pthread.h and sched.h headers from
+ ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/include/
+ into the msvc directory
+- download pthreadVC2.lib from:
+ ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/lib/
+ into the msvc directory
+- download pthreadVC2.dll from the same link into your executable destination
+- edit config_msvc.h according to your needs (you might want to comment out
+ ENABLE_DEBUG_LOGGING)
+- edit the Linker's "Additional Library Directory" properties to point to your
+ Windows DDK (you must have the Windows DDK installed). For instance, to build
+ against the Windows 7 x86 libraries, you could use:
+ E:\WinDDK\7600.16385.0\lib\win7\i386