AP_Common: define WEAK attribute

This commit is contained in:
Peter Barker 2018-08-08 23:35:36 +10:00 committed by Randy Mackay
parent 723ad34dfb
commit 09bdb6315b
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@
// used to pack structures
#define PACKED __attribute__((__packed__))
// used to weaken symbols
#define WEAK __attribute__((__weak__))
// used to mark a function that may be unused in some builds
#define UNUSED_FUNCTION __attribute__((unused))