libsel4: Make FORCE_LONG_ENUM actually force a long instead of an int
This commit is contained in:
parent
6c6a925233
commit
e971b9bcaf
1 changed files with 2 additions and 2 deletions
|
|
@ -16,10 +16,10 @@
|
|||
/*
|
||||
* Some compilers attempt to pack enums into the smallest possible type.
|
||||
* For ABI compatability with the kernel, we need to ensure they remain
|
||||
* the same size as an 'int'.
|
||||
* the same size as a 'long'.
|
||||
*/
|
||||
#define SEL4_FORCE_LONG_ENUM(type) \
|
||||
_enum_pad_ ## type = (1U << ((sizeof(int)*8) - 1)) - 1
|
||||
_enum_pad_ ## type = (1ULL << ((sizeof(long)*8) - 1)) - 1
|
||||
|
||||
#ifndef CONST
|
||||
#define CONST __attribute__((__const__))
|
||||
|
|
|
|||
Loading…
Reference in a new issue