Przeglądaj źródła

fix build in gcc 13 (#4289)

xpxz 1 rok temu
rodzic
commit
1c2ba2073b
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      packages/c/crossguid/xmake.lua

+ 1 - 0
packages/c/crossguid/xmake.lua

@@ -19,6 +19,7 @@ package("crossguid")
     add_deps("cmake")
     add_deps("cmake")
 
 
     on_install("windows", "linux", "macosx", "iphoneos", "android", "mingw", function (package)
     on_install("windows", "linux", "macosx", "iphoneos", "android", "mingw", function (package)
+        io.replace(path.translate("include/crossguid/guid.hpp"), "#include <functional>", "#include <cstdint>\n#include<functional>", { plain = true })
         local configs = {"-DCROSSGUID_TESTS=OFF"}
         local configs = {"-DCROSSGUID_TESTS=OFF"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         import("package.tools.cmake").install(package, configs, {buildir = "build"})
         import("package.tools.cmake").install(package, configs, {buildir = "build"})