diff options
| author | 2025-04-20 09:41:11 +1000 | |
|---|---|---|
| committer | 2025-04-20 09:41:11 +1000 | |
| commit | 9c28c45517c5a231a8a30c2107ec3efecdf0ff8e (patch) | |
| tree | 17e98656bbc1c68aac653d414985c9c7a40071d3 | |
| parent | 435f04a4c558e424fe81907e409fe772ad60bab4 (diff) | |
3rdparty/portmidi: Another place that needs const hit by Linux.
| -rw-r--r-- | 3rdparty/portmidi/pm_common/pminternal.h | 2 | ||||
| -rw-r--r-- | 3rdparty/portmidi/pm_common/portmidi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/portmidi/pm_common/pminternal.h b/3rdparty/portmidi/pm_common/pminternal.h index 2aea2fd18dc..80efbb07f64 100644 --- a/3rdparty/portmidi/pm_common/pminternal.h +++ b/3rdparty/portmidi/pm_common/pminternal.h @@ -160,7 +160,7 @@ PmTimestamp none_synchronize(PmInternal *midi); PmError pm_fail_fn(PmInternal *midi); PmError pm_fail_timestamp_fn(PmInternal *midi, PmTimestamp timestamp); PmError pm_success_fn(PmInternal *midi); -PmError pm_add_interf(char *interf, pm_create_fn create_fn, +PmError pm_add_interf(const char *interf, pm_create_fn create_fn, pm_delete_fn delete_fn); PmError pm_add_device(const char *interf, const char *name, int is_input, int is_virtual, void *descriptor, pm_fns_type dictionary); diff --git a/3rdparty/portmidi/pm_common/portmidi.c b/3rdparty/portmidi/pm_common/portmidi.c index f3f425df340..7c906dcae42 100644 --- a/3rdparty/portmidi/pm_common/portmidi.c +++ b/3rdparty/portmidi/pm_common/portmidi.c @@ -121,7 +121,7 @@ static int pm_interf_list_len = 0; * returns pmInsufficientMemor if interface memory is * exceeded, otherwise returns pmNoError. */ -PmError pm_add_interf(char *interf, pm_create_fn create_fn, +PmError pm_add_interf(const char *interf, pm_create_fn create_fn, pm_delete_fn delete_fn) { if (pm_interf_list_len >= MAX_INTERF) { |
