Skip to content

Commit

Permalink
Apple buildfix (#17294)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Dec 27, 2024
1 parent 4fc6bbe commit 3989a62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion audio/drivers_microphone/sdl_microphone.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static void *sdl_microphone_open_mic(void *driver_context,
#if __APPLE__
if (!string_is_equal(audio_driver_get_ident(), "sdl2"))
{
const char *msg = msg_hash_to_str(MSG_SDL2_MIC_NEEDS_SDL2_AUDIO),msg_hash_to_str(MSG_SDL2_MIC_NEEDS_SDL2_AUDIO);
const char *msg = msg_hash_to_str(MSG_SDL2_MIC_NEEDS_SDL2_AUDIO);
runloop_msg_queue_push(msg, strlen(msg),
1, 100, true, NULL,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_WARNING);
Expand Down
7 changes: 4 additions & 3 deletions pkg/apple/HelperBar/CocoaView+HelperBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ extension CocoaView: HelperBarActionDelegate {
func mouseButtonTapped() {
mouseHandler.enabled.toggle()
let messageKey = mouseHandler.enabled ? MSG_IOS_TOUCH_MOUSE_ENABLED : MSG_IOS_TOUCH_MOUSE_DISABLED
let message = msg_hash_to_str(messageKey)
runloop_msg_queue_push(message, strlen(message), 1, 100, true, nil,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO)
if let message = msg_hash_to_str(messageKey) {
runloop_msg_queue_push(message, strlen(message), 1, 100, true, nil,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO)
}
}

func helpButtonTapped() {
Expand Down

0 comments on commit 3989a62

Please sign in to comment.