Changeset b2db1f5c in rtems


Ignore:
Timestamp:
Nov 20, 2014, 2:00:29 PM (5 years ago)
Author:
Jan Dolezal <dolezj21@…>
Branches:
4.11, master
Children:
74d2d940
Parents:
d885b2b2
git-author:
Jan Dolezal <dolezj21@…> (11/20/14 14:00:29)
git-committer:
Gedare Bloom <gedare@…> (11/20/14 14:52:39)
Message:

cpukit: basedefs: macro for packed attribute

File:
1 edited

Legend:

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

    rd885b2b2 rb2db1f5c  
    196196#else
    197197  #define RTEMS_COMPILER_UNUSED_ATTRIBUTE
     198#endif
     199
     200/**
     201 *  Instructs the compiler that a specific structure or union members will be
     202 *  placed so that the least memory is used.
     203 */
     204#if defined(__GNUC__)
     205  #define RTEMS_COMPILER_PACKED_ATTRIBUTE __attribute__((packed))
     206#else
     207  #define RTEMS_COMPILER_PACKED_ATTRIBUTE
    198208#endif
    199209
Note: See TracChangeset for help on using the changeset viewer.