aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-08-04 08:10:34 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-04 08:10:34 -0700
commitc4c628f6617ae15b1f2445cf893196748d0488fb (patch)
treefe12c7d9e2eb8b555bb41a2c0ba01024d2d2eed3 /t/unit-tests
parentMerge branch 'js/mingw-fixes' (diff)
parentmeson: ensure correct "clar-decls.h" header is used (diff)
downloadgit-c4c628f6617ae15b1f2445cf893196748d0488fb.tar.gz
git-c4c628f6617ae15b1f2445cf893196748d0488fb.zip
Merge branch 'ps/meson-clar-decls-fix'
Build fix. * ps/meson-clar-decls-fix: meson: ensure correct "clar-decls.h" header is used
Diffstat (limited to 't/unit-tests')
-rw-r--r--t/unit-tests/unit-test.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/unit-tests/unit-test.h b/t/unit-tests/unit-test.h
index 85e5d6a948..39a0b72a05 100644
--- a/t/unit-tests/unit-test.h
+++ b/t/unit-tests/unit-test.h
@@ -1,8 +1,13 @@
#include "git-compat-util.h"
#include "clar/clar.h"
-#include "clar-decls.h"
#include "strbuf.h"
+#ifndef GIT_CLAR_DECLS_H
+# include "clar-decls.h"
+#else
+# include GIT_CLAR_DECLS_H
+#endif
+
#define cl_failf(fmt, ...) do { \
char desc[4096]; \
snprintf(desc, sizeof(desc), fmt, __VA_ARGS__); \