Skip to content

Commit

Permalink
Fix nasa#644, Remove alignment macros
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jan 4, 2021
1 parent d698a4d commit 5881078
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 5881078

Please sign in to comment.