From a3ba5b3798c5f02641b1d1f25109fc5ca99361a8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 16 Oct 2015 08:17:20 +0200 Subject: basdefs.h: Add RTEMS_PURE --- cpukit/score/include/rtems/score/basedefs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index 5575a068c7..9e6bc0ab26 100644 --- a/cpukit/score/include/rtems/score/basedefs.h +++ b/cpukit/score/include/rtems/score/basedefs.h @@ -171,12 +171,14 @@ * variables. */ #ifdef __GNUC__ - #define RTEMS_COMPILER_PURE_ATTRIBUTE \ - __attribute__ ((pure)) + #define RTEMS_PURE __attribute__((__pure__)) #else - #define RTEMS_COMPILER_PURE_ATTRIBUTE + #define RTEMS_PURE #endif +/* Provided for backward compatibility */ +#define RTEMS_COMPILER_PURE_ATTRIBUTE RTEMS_PURE + /** * Instructs the compiler to issue a warning whenever a variable or function * with this attribute will be used. -- cgit v1.2.3