Skip to content

Commit

Permalink
Merge pull request #734 from skliper/fix644-rm_pack_align
Browse files Browse the repository at this point in the history
Fix #644, Remove alignment macros
  • Loading branch information
astrogeco authored Jan 13, 2021
2 parents 89bd11a + 5881078 commit 2f2600f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/os/inc/common_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,18 @@ extern "C"
** Define compiler specific macros
** The __extension__ compiler pragma is required
** for the uint64 type using GCC with the ANSI C90 standard.
** Other macros can go in here as needed, for example alignment
** pragmas.
** Other macros can go in here as needed.
**
** NOTE: The white-box (coverage) unit testing may need to disable
** these extra attributes. These test builds define the OSAPI_NO_SPECIAL_ATTRIBS
** macro to disable this.
*/
#if defined(__GNUC__) && !defined(OSAPI_NO_SPECIAL_ATTRIBS)
#define _EXTENSION_ __extension__
#define OS_PACK __attribute__((packed))
#define OS_ALIGN(n) __attribute__((aligned(n)))
#define OS_USED __attribute__((used))
#define OS_PRINTF(n, m) __attribute__((format(printf, n, m)))
#else
#define _EXTENSION_
#define OS_PACK
#define OS_ALIGN(n)
#define OS_USED
#define OS_PRINTF(n, m)
#endif
Expand Down

0 comments on commit 2f2600f

Please sign in to comment.