Skip to content

Commit

Permalink
options/internal: remove __GNUC__ requirement for __MLIBC_FIELD_PADDED
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Mar 4, 2024
1 parent d96f1dd commit 7a854fd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions options/internal/include/bits/field-padding.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#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__ == __ORDER_BIG_ENDIAN__); \
T F; \
PT : (sizeof(PT)-sizeof(T))*8*(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)

#else
#error "Unsupported compiler"
#endif

#endif

0 comments on commit 7a854fd

Please sign in to comment.