diff options
Diffstat (limited to 'cpukit/score/include/rtems/system.h')
-rw-r--r-- | cpukit/score/include/rtems/system.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h index f65c00cc7f..e807276d21 100644 --- a/cpukit/score/include/rtems/system.h +++ b/cpukit/score/include/rtems/system.h @@ -138,6 +138,17 @@ extern "C" { #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE #endif +/** + * Instructs the compiler to issue a warning whenever a variable or function + * with this attribute will be used. + */ +#ifdef __GNUC__ + #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE \ + __attribute__ ((deprecated)) +#else + #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE +#endif + #ifdef RTEMS_POSIX_API /** The following is used by the POSIX implementation to catch bad paths. */ int POSIX_NOT_IMPLEMENTED( void ); |