mirror of git://git.musl-libc.org/musl
collapse out byte order conditions in bits/sem.h for fixed-endian archs
having preprocessor conditionals on byte order in the bits headers for fixed-endian archs is confusing at best. remove them.
This commit is contained in:
parent
6f2e5607d2
commit
28637bc407
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||
long __unused1;
|
||||
time_t sem_ctime;
|
||||
long __unused2;
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
unsigned short sem_nsems;
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
#else
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
unsigned short sem_nsems;
|
||||
#endif
|
||||
long __unused3;
|
||||
long __unused4;
|
||||
};
|
||||
|
|
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||
long __unused1;
|
||||
time_t sem_ctime;
|
||||
long __unused2;
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
unsigned short sem_nsems;
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
#else
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
unsigned short sem_nsems;
|
||||
#endif
|
||||
long __unused3;
|
||||
long __unused4;
|
||||
};
|
||||
|
|
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||
long __unused1;
|
||||
time_t sem_ctime;
|
||||
long __unused2;
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
unsigned short sem_nsems;
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
#else
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
unsigned short sem_nsems;
|
||||
#endif
|
||||
long __unused3;
|
||||
long __unused4;
|
||||
};
|
||||
|
|
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||
long __unused1;
|
||||
time_t sem_ctime;
|
||||
long __unused2;
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
unsigned short sem_nsems;
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
#else
|
||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||
unsigned short sem_nsems;
|
||||
#endif
|
||||
long __unused3;
|
||||
long __unused4;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue