summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h8
1 files 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.