fixed 64-bit cmd/arg for windows

This commit is contained in:
roel@libnfc.org 2012-12-09 13:00:19 +00:00
commit 9440213d6b
4 changed files with 21 additions and 13 deletions

View file

@ -35,10 +35,10 @@ typedef struct {
#define USB_CMD_DATA_SIZE 512
typedef struct {
uint32_t cmd;
uint64_t cmd;
uint64_t arg[3];
union {
uint8_t asBytes[USB_CMD_DATA_SIZE];
uint8_t asBytes[USB_CMD_DATA_SIZE];
uint32_t asDwords[USB_CMD_DATA_SIZE/4];
} d;
} PACKED UsbCommand;