AP_Common: make PACKED depend on architecture

this will remove lots of warnings when building with arduino
This commit is contained in:
Andrew Tridgell 2013-05-09 20:03:59 +10:00
parent ed5ddfd9db
commit 62b9a580e8

View File

@ -25,7 +25,11 @@
#pragma GCC diagnostic ignored "-Wredundant-decls"
// used to pack structures
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define PACKED
#else
#define PACKED __attribute__((__packed__))
#endif
// Make some dire warnings into errors
//