From 6bb6d96e09076ed0c69128820f6c8bace5204a4a Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Tue, 23 Aug 2022 15:05:08 -0400 Subject: [PATCH] Check macOS version < 12 to use old function name Fixes building on macOS < 12 --- vid_sdl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vid_sdl.c b/vid_sdl.c index 1ddf7a39..5845e073 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -30,6 +30,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include +#if (MAC_OS_X_VERSION_MIN_REQUIRED < 120000) + #define IOMainPort IOMasterPort +#endif static cvar_t apple_mouse_noaccel = {CF_CLIENT | CF_ARCHIVE, "apple_mouse_noaccel", "1", "disables mouse acceleration while DarkPlaces is active"}; static qbool vid_usingnoaccel; static double originalMouseSpeed = -1.0; -- 2.39.2