diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-08 10:20:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-24 07:12:58 +0200 |
commit | 6f94a830bd750bc744b3e605be52978d1cd006e3 (patch) | |
tree | e96b76472d6c4b4c47b497491f46c2d8b61cb802 /cpukit/include/rtems/score/basedefs.h | |
parent | spintrcritical_support: Remove (diff) | |
download | rtems-6f94a830bd750bc744b3e605be52978d1cd006e3.tar.bz2 |
score: Add RTEMS_WEAK
Update #4032.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/basedefs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h index e301292375..a934507d80 100644 --- a/cpukit/include/rtems/score/basedefs.h +++ b/cpukit/include/rtems/score/basedefs.h @@ -198,6 +198,18 @@ #endif /** + * @brief Instructs the compiler to define a weak function. + * + * Use this attribute for function definitions. Do not use it for function + * declarations. + */ +#if defined(__GNUC__) + #define RTEMS_WEAK __attribute__((__weak__)) +#else + #define RTEMS_WEAK +#endif + +/** * @brief Instructs the compiler to generate a weak alias to the specified * target function. */ |