diff options
Diffstat (limited to 'cpukit/include/rtems/score/basedefs.h')
-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. */ |