From 1a5b372fd2774505273f85f0b51deff785be99b7 Mon Sep 17 00:00:00 2001 From: Hanif Koh Date: Wed, 7 Oct 2026 02:45:49 +0800 Subject: [PATCH] Declare json in OrcaSlicer.cpp on Every Platform OrcaSlicer.cpp had its "using namespace nlohmann;" and the json include inside the Linux-only include block, so on Windows and macOS it took json from AppConfig.hpp's global directive, which is gone. The include and a "using json = nlohmann::json;" now sit outside the block. --- src/OrcaSlicer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/OrcaSlicer.cpp b/src/OrcaSlicer.cpp index 7a9977f816..a2e4e20374 100644 --- a/src/OrcaSlicer.cpp +++ b/src/OrcaSlicer.cpp @@ -77,12 +77,10 @@ #include #include #include -//add json logic -#include "nlohmann/json.hpp" - -using namespace nlohmann; #endif +#include "nlohmann/json.hpp" + #include #include #include @@ -156,6 +154,7 @@ using namespace nlohmann; #include namespace fs = boost::filesystem; +using json = nlohmann::json; #ifdef __WXGTK__ #if __has_include()