Skip to content

Commit 4440251

Browse files
committed
Added __packed macro to be compatible with GCC compiler, in order to build USB libs with GCC_ARM
1 parent 7ee1e59 commit 4440251

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)