From 02e3b1577cd61369f47dc4825bdf946430de9a1e Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 7 Mar 2024 09:09:56 +0000 Subject: [PATCH] Use __APPLE__ to check OS platform --- utils/svg2png/svg2png.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/svg2png/svg2png.cpp b/utils/svg2png/svg2png.cpp index 7a9d378a1..93060fde6 100644 --- a/utils/svg2png/svg2png.cpp +++ b/utils/svg2png/svg2png.cpp @@ -133,7 +133,7 @@ struct main_marker_visitor if (auto_open_) { std::ostringstream s; -#ifdef DARWIN +#ifdef __APPLE__ s << "open " << png_name; #else s << "xdg-open " << png_name;