From 4666b6c13091081a8c39fbfa60eb16c8bbc2cbd1 Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Fri, 2 Oct 2026 13:24:53 +1000 Subject: [PATCH] Stub out usb/physical_macos.c on non-Apple systems This file gets built on all systems, but will only successfully build on Apple systems. Rather than hack the makefile to detect Apple systems and exclude only this file, simply remove the entire file contents on non-Apple systems so it builds successfully. Without this I'm unable to build libcemucore.a (and thus also the SDL GUI) on Linux --- core/usb/physical_macos.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/usb/physical_macos.c b/core/usb/physical_macos.c index 9a451cd1c..b395e5b27 100644 --- a/core/usb/physical_macos.c +++ b/core/usb/physical_macos.c @@ -1,3 +1,5 @@ +#ifdef __APPLE__ + #include "physical_macos.h" #include @@ -391,3 +393,5 @@ physical_hid_read_result_t physical_hid_read(physical_hid_device_t *device, pthread_mutex_unlock(&device->mutex); return PHYSICAL_HID_READ_COMPLETED; } + +#endif /* __APPLE__ */