aboutsummaryrefslogtreecommitdiff
path: root/modules/log_json.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-04-16 20:58:51 +0100
committerGravatar Sadie Powell2025-04-16 20:58:51 +0100
commita8eac089129cd71fdd0a17eab45db22fd46df81c (patch)
tree96e9f7f0335a7ee61d5d4a075cb52ab2f16ec85b /modules/log_json.cpp
parentMerge branch 'insp4' into master. (diff)
Allow building log_json against system yyjson.
Diffstat (limited to 'modules/log_json.cpp')
-rw-r--r--modules/log_json.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/log_json.cpp b/modules/log_json.cpp
index 74ea65d67..35a41d156 100644
--- a/modules/log_json.cpp
+++ b/modules/log_json.cpp
@@ -16,7 +16,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <yyjson/yyjson.c>
+/// $CompilerFlags: require_environment("SYSTEM_YYJSON" "1") find_compiler_flags("yyjson") -DUSE_SYSTEM_YYJSON
+/// $LinkerFlags: require_environment("SYSTEM_YYJSON" "1") find_linker_flags("yyjson")
+
+
+#ifdef USE_SYSTEM_YYJSON
+# include <yyjson.h>
+#else
+# include <yyjson/yyjson.c>
+#endif
#include "inspircd.h"
#include "timeutils.h"