Fix windows compilation issues. But still not final. We should move to pthread and factorize the code with *nix). Ideally we should move to libusb-1.0 too.

This commit is contained in:
izsh@fail0verflow.com 2010-02-20 00:36:48 +00:00
commit 91c38cf715
8 changed files with 30 additions and 40 deletions

View file

@ -1,14 +1,10 @@
#ifndef PROXUSB_H__
#define PROXUSB_H__
#ifdef _MSC_VER
typedef DWORD uint32_t;
typedef BYTE uint8_t;
typedef WORD uint16_t;
#define bool BOOL
#else
#include <stdint.h>
#include <stdbool.h>
#ifndef WIN32
#include <usb.h>
#endif
#include "usb_cmd.h"