Changeset 3c50c328 in rtems


Ignore:
Timestamp:
Apr 5, 2019, 6:42:01 AM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
03c9f24
Parents:
222570a
git-author:
Sebastian Huber <sebastian.huber@…> (04/05/19 06:42:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/09/19 06:06:46)
Message:

score: Add RTEMS_CONST

Close #3734.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/basedefs.h

    r222570a r3c50c328  
    104104/* Provided for backward compatibility */
    105105#define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE RTEMS_NO_RETURN
     106
     107/**
     108 *  The following defines a compiler specific attribute which informs
     109 *  the compiler that the method has no effect except the return value
     110 *  and that the return value depends only the value of parameters.
     111 */
     112#ifdef __GNUC__
     113  #define RTEMS_CONST __attribute__((__const__))
     114#else
     115  #define RTEMS_CONST
     116#endif
    106117
    107118/**
Note: See TracChangeset for help on using the changeset viewer.