From 1c2ba2073b0e933ea8a472c5e45d5fd378e885f4 Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Sat, 8 Jun 2024 22:53:39 +0800 Subject: [PATCH] fix build in gcc 13 (#4289) --- packages/c/crossguid/xmake.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/c/crossguid/xmake.lua b/packages/c/crossguid/xmake.lua index 36de59a33..55d139d22 100644 --- a/packages/c/crossguid/xmake.lua +++ b/packages/c/crossguid/xmake.lua @@ -19,6 +19,7 @@ package("crossguid") add_deps("cmake") on_install("windows", "linux", "macosx", "iphoneos", "android", "mingw", function (package) + io.replace(path.translate("include/crossguid/guid.hpp"), "#include ", "#include \n#include", { plain = true }) local configs = {"-DCROSSGUID_TESTS=OFF"} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) import("package.tools.cmake").install(package, configs, {buildir = "build"})