From 09bdb6315b7d42c73d3d1af40a3607fbaad4146d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 8 Aug 2018 23:35:36 +1000 Subject: [PATCH] AP_Common: define WEAK attribute --- libraries/AP_Common/AP_Common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index f93fdc0706..6ded872c81 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -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))