-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
options/internal: remove __GNUC__ requirement for __MLIBC_FIELD_PADDED
- Loading branch information
1 parent
6774dcf
commit f0098ed
Showing
2 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
#ifndef MLIBC_FIELD_PADDING_H | ||
#define MLIBC_FIELD_PADDING_H | ||
|
||
#ifdef __GNUC__ | ||
|
||
#define __MLIBC_FIELD_PADDED(T, F, PT) \ | ||
PT : (sizeof(PT)-sizeof(T))*8*(BYTE_ORDER == BIG_ENDIAN); \ | ||
#define __MLIBC_FIELD_PADDED(T, AT, F) \ | ||
AT : (sizeof(AT)-sizeof(T))*8*(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__); \ | ||
T F; \ | ||
PT : (sizeof(PT)-sizeof(T))*8*(BYTE_ORDER == LITTLE_ENDIAN) | ||
|
||
#else | ||
#error "Unsupported compiler" | ||
#endif | ||
AT : (sizeof(AT)-sizeof(T))*8*(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) | ||
|
||
#endif |