mirror of
https://github.com/holub/mame
synced 2025-05-10 08:12:13 +03:00
3rdparty/portmidi: Fixed more discarded const and undefined macro errors.
This commit is contained in:
parent
f28dac8e0c
commit
3f69ebaa82
8
3rdparty/portmidi/pm_mac/readbinaryplist.c
vendored
8
3rdparty/portmidi/pm_mac/readbinaryplist.c
vendored
@ -101,19 +101,19 @@ memory requested or calls longjmp, so callers don't have to check.
|
||||
|
||||
/* #define BPLIST_LOG_VERBOSE 1 */
|
||||
|
||||
#if BPLIST_LOG_VERBOSE
|
||||
#if defined(BPLIST_LOG_VERBOSE) && (BPLIST_LOG_VERBOSE != 0)
|
||||
#ifndef BPLIST_LOG
|
||||
#define BPLIST_LOG 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if BPLIST_LOG
|
||||
#if defined(BPLIST_LOG) && (BPLIST_LOG != 0)
|
||||
#define bplist_log printf
|
||||
#else
|
||||
#define bplist_log(...)
|
||||
#endif
|
||||
|
||||
#if BPLIST_LOG_VERBOSE
|
||||
#if defined(BPLIST_LOG_VERBOSE) && (BPLIST_LOG_VERBOSE != 0)
|
||||
#define bplist_log_verbose bplist_log
|
||||
#else
|
||||
#define bplist_log_verbose(...)
|
||||
@ -749,7 +749,7 @@ static value_ptr extract_date(bplist_info_ptr bplist, uint64_t offset)
|
||||
|
||||
|
||||
uint64_t bplist_get_a_size(bplist_info_ptr bplist,
|
||||
uint64_t *offset_ptr, char *msg)
|
||||
uint64_t *offset_ptr, const char *msg)
|
||||
{
|
||||
uint64_t size = bplist->data_bytes[*offset_ptr] & 0x0F;
|
||||
(*offset_ptr)++;
|
||||
|
Loading…
Reference in New Issue
Block a user