From 4440251d787edcae2ec1c4f55a204aa291bc3d93 Mon Sep 17 00:00:00 2001 From: pbrier Date: Sat, 6 Apr 2013 15:50:57 +0200 Subject: [PATCH] Added __packed macro to be compatible with GCC compiler, in order to build USB libs with GCC_ARM --- libraries/USBDevice/USBDevice/USBHAL.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/USBDevice/USBDevice/USBHAL.h b/libraries/USBDevice/USBDevice/USBHAL.h index c9c047e3b2b..a6464ab7f6f 100644 --- a/libraries/USBDevice/USBDevice/USBHAL.h +++ b/libraries/USBDevice/USBDevice/USBHAL.h @@ -22,6 +22,10 @@ #include "mbed.h" #include "USBEndpoints.h" +#ifdef __GNUC__ +#define __packed __attribute__ ((__packed__)) +#endif + class USBHAL { public: /* Configuration */