From 5e16d18d2b7bf13e36804a64d67cc51ff1f04ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Mon, 1 Jan 2024 11:04:33 +0100 Subject: [PATCH] concurrentqueue: Restore concurrentqueue/concurrentqueue.h include (#3016) https://github.com/xmake-io/xmake-repo/commit/095e769f1f6db3aa501300ecbe8ad5fb4bb4c5d4 reworked concurrentqueue which no longer has `concurrentqueue/concurrentqueue.h` includes, this breaks compilation for existing project using it. This commit adds a temporary include allowing existing projects to compile, but prints a compiler message --- packages/c/concurrentqueue/xmake.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/c/concurrentqueue/xmake.lua b/packages/c/concurrentqueue/xmake.lua index b34d6e179..095897cea 100644 --- a/packages/c/concurrentqueue/xmake.lua +++ b/packages/c/concurrentqueue/xmake.lua @@ -26,6 +26,13 @@ package("concurrentqueue") table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) import("package.tools.cmake").install(package, configs) + io.writefile(path.join(package:installdir("include"), "concurrentqueue", "concurrentqueue.h"), [[ +#pragma once + +#pragma message please update include to +#include "moodycamel/concurrentqueue.h" + ]]) + if package:config("c_api") then io.writefile("xmake.lua", [[ add_rules("mode.debug", "mode.release")