forked from len0rd/rockbox
[BugFix] Enums are only 2 bytes on some Devices
using enums to hold values larger than 0xFFFF could be problematic WIP Change-Id: I3a9be957265364b545f022fe26163f0869569e3e
This commit is contained in:
parent
9e2c85e076
commit
4ec34f6986
18 changed files with 168 additions and 165 deletions
|
@ -102,10 +102,12 @@ enum codec_command_action {
|
|||
#ifdef HAVE_RECORDING
|
||||
CODEC_ACTION_STREAM_FINISH = 2,
|
||||
#endif
|
||||
CODEC_ACTION_MIN = LONG_MIN,
|
||||
CODEC_ACTION_MAX = LONG_MAX,
|
||||
|
||||
};
|
||||
|
||||
#define CODEC_ACTION_MIN (LONG_MIN)
|
||||
#define CODEC_ACTION_MAX = (LONG_MAX)
|
||||
|
||||
/* NOTE: To support backwards compatibility, only add new functions at
|
||||
the end of the structure. Every time you add a new function,
|
||||
remember to increase CODEC_API_VERSION. If you make changes to the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue