Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libraries/USBDevice/USBDevice/USBHAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "mbed.h"
#include "USBEndpoints.h"

#ifdef __GNUC__
#define __packed __attribute__ ((__packed__))
#endif

class USBHAL {
public:
/* Configuration */
Expand Down
5 changes: 5 additions & 0 deletions libraries/mbed/capi/toolchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ typedef int FILEHANDLE;
# define PACKED __attribute__((packed))
#endif


#ifdef __GNUC__
#define __packed __attribute__ ((__packed__))
#endif

#endif
1 change: 1 addition & 0 deletions libraries/mbed/cpp/mbed.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#define MBED_LIBRARY_VERSION 30

#include "toolchain.h"
#include "platform.h"

// Useful C libraries
Expand Down