add the definition of PACKED in its client/deprecated-hid-flasher/flasher/proxmark3.h

This commit is contained in:
merlokk 2019-07-16 15:25:48 +03:00
parent 20d13d5509
commit 12c6b5cb20
3 changed files with 14 additions and 2 deletions

View file

@ -9,7 +9,7 @@
#ifndef __ELF_H__
#define __ELF_H__
#include "common.h"
#include "proxmark3.h"
typedef struct {
uint32_t p_type;

View file

@ -14,4 +14,16 @@
#define PROXPROMPT "proxmark3> "
#ifdef _MSC_VER
typedef DWORD uint32_t;
typedef BYTE uint8_t;
#define PACKED
// stuff
#else
#include <stdint.h>
#include <stdbool.h>
#define PACKED __attribute__((packed))
#endif
#endif

View file

@ -13,7 +13,7 @@
#ifndef __USB_CMD_H
#define __USB_CMD_H
#include "common.h"
#include "proxmark3.h"
typedef struct {
uint32_t cmd;