//SPDX-License-Identifier: LGPL-3.0-only //SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® // Stands in for Crafter.Build #43, and goes when that is fixed, with its line // in project.cpp. In the Flatpak the MinGW sysroot is the host's /usr, which // puts glibc's headers on the include path, so the libstdc++ shared_ptr that // nlohmann/json inlines into Crafter.Asset's GLB loader reads glibc's // __libc_single_threaded, which no Windows library defines. Zero means "not // single-threaded", so the reference counts stay atomic, as they would be // without the leak. char __libc_single_threaded = 0;