Skip to content

Commit 7697432

Browse files
pbrieradbridge
authored andcommitted
Added __packed macro to be compatible with GCC compiler, in order to build USB libs with GCC_ARM
1 parent bcf7085 commit 7697432

File tree

1 file changed

+4
-0
lines changed
  • features/unsupported/USBDevice/USBDevice

1 file changed

+4
-0
lines changed

features/unsupported/USBDevice/USBDevice/USBHAL.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
//#define __packed __attribute__ ((__packed__))
2828
//#endif
2929

30+
#ifdef __GNUC__
31+
#define __packed __attribute__ ((__packed__))
32+
#endif
33+
3034
class USBHAL {
3135
public:
3236
/* Configuration */

0 commit comments

Comments
 (0)