diff options
| author | 2025-04-20 17:38:24 +1000 | |
|---|---|---|
| committer | 2025-04-20 17:38:24 +1000 | |
| commit | 3f69ebaa8243fca4c97eb5a58951bfbc7d68bde3 (patch) | |
| tree | c6edb73d6ef53fc8d4632ea96654f9cdf331d95a /3rdparty | |
| parent | f28dac8e0c5368e38a9bd667cf8bb1bf3214a457 (diff) | |
3rdparty/portmidi: Fixed more discarded const and undefined macro errors.
Diffstat (limited to '3rdparty')
| -rw-r--r-- | 3rdparty/portmidi/pm_mac/readbinaryplist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/portmidi/pm_mac/readbinaryplist.c b/3rdparty/portmidi/pm_mac/readbinaryplist.c index 9c0eb9b592d..5afc9b606d7 100644 --- a/3rdparty/portmidi/pm_mac/readbinaryplist.c +++ b/3rdparty/portmidi/pm_mac/readbinaryplist.c @@ -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)++; |
