From: Cloudwalk Date: Tue, 23 Aug 2022 19:05:08 +0000 (-0400) Subject: Check macOS version < 12 to use old function name X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6bb6d96e09076ed0c69128820f6c8bace5204a4a;p=xonotic%2Fdarkplaces.git Check macOS version < 12 to use old function name Fixes building on macOS < 12 --- 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;