Ensure enum size being int.

This commit is contained in:
Themaister 2012-12-08 12:32:33 +01:00
parent 3c5aec41a1
commit 5aed38cf37

View File

@ -307,7 +307,9 @@ enum retro_key
RETROK_EURO = 321,
RETROK_UNDO = 322,
RETROK_LAST
RETROK_LAST,
RETROK_DUMMY = INT_MAX, // Ensure sizeof(enum) == sizeof(int)
};
enum retro_mod
@ -321,7 +323,9 @@ enum retro_mod
RETROKMOD_NUMLOCK = 0x10,
RETROKMOD_CAPSLOCK = 0x20,
RETROKMOD_SCROLLOCK = 0x40
RETROKMOD_SCROLLOCK = 0x40,
RETROKMOD_DUMMY = INT_MAX, // Ensure sizeof(enum) == sizeof(int)
};