From e5cb67b9b311fb9f95e90450ca022fc3fd64790c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Nov 2024 21:44:48 +0530 Subject: [PATCH] Fix build on macOS --- kitty/launcher/single-instance.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/kitty/launcher/single-instance.c b/kitty/launcher/single-instance.c index a12ebbf03..0fee35b7a 100644 --- a/kitty/launcher/single-instance.c +++ b/kitty/launcher/single-instance.c @@ -5,17 +5,10 @@ * Distributed under terms of the GPL3 license. */ +// We rely on data-types.h including Python.h which defines _DARWIN_C_SOURCE +// which we need for _CS_DARWIN_USER_CACHE_DIR #include "../data-types.h" -#ifdef __APPLE__ -// Needed for _CS_DARWIN_USER_CACHE_DIR -#define _DARWIN_C_SOURCE -#include -#undef _DARWIN_C_SOURCE -#else -#include -#endif - #include "launcher.h" #include "../safe-wrappers.h" #include