From 5f729f79893fd184b0f0a4ca155dfd9d69190572 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 13 Sep 2023 22:41:16 +0800 Subject: [PATCH] Fix macOS macro Close #I80IGH --- xy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xy.h b/xy.h index 2804c24..9cc5a32 100644 --- a/xy.h +++ b/xy.h @@ -3,7 +3,7 @@ * License : MIT * Authors : Aoran Zeng * Created on : <2023-08-28> - * Last modified : <2023-09-10> + * Last modified : <2023-09-13> * * xy: * @@ -51,14 +51,14 @@ #define xy_useutf8() -#elif defined(TARGET_OS_MAC) || defined(__MACOSX__) +#elif defined(__APPLE__) static bool xy_on_windows = false; static bool xy_on_linux = false; static bool xy_on_macos = true; static bool xy_on_bsd = false; - // set xy_os_devnull + static char* xy_os_devnull = "/dev/null"; #define xy_useutf8()