libsel4: Make FORCE_LONG_ENUM actually force a long instead of an int

This commit is contained in:
Adrian Danis 2015-09-03 14:33:55 +10:00
parent 6c6a925233
commit e971b9bcaf

View file

@ -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__))