Skip to content

Commit 0037711

Browse files
committed
Merge pull request #1 from pbrier/master
Build USB libs with GCC_ARM
2 parents 4a6e8aa + 4440251 commit 0037711

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/USBDevice/USBDevice/USBHAL.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "mbed.h"
2323
#include "USBEndpoints.h"
2424

25+
#ifdef __GNUC__
26+
#define __packed __attribute__ ((__packed__))
27+
#endif
28+
2529
class USBHAL {
2630
public:
2731
/* Configuration */

0 commit comments

Comments
 (0)