diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2024-02-03 19:44:11 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2024-02-05 19:10:22 +0000 |
commit | 358e1759b33d8715124d2eac9dcff34f3172476e (patch) | |
tree | ce2be7eb25ae6bac04ba129c6fe81bc098b06de0 | |
parent | 3ac33cd6c3f4519336d5266418948b69a4be5657 (diff) |
Fix linking error with msvc
Change-Id: If069568ecae202ea5a2280ed43c42607f9433648
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | tests/clang-format-test/clang-format.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/clang-format-test/clang-format.cpp b/tests/clang-format-test/clang-format.cpp index 77af2b286..3d952f11c 100644 --- a/tests/clang-format-test/clang-format.cpp +++ b/tests/clang-format-test/clang-format.cpp @@ -37,8 +37,11 @@ static int aGlobalInt = 3; // qtcassert.h: namespace Utils { -QTCREATOR_UTILS_EXPORT void writeAssertLocation(const char *msg); +void writeAssertLocation(const char *msg) +{ + std::printf("%s", msg); } +} // namespace Utils #define QTC_ASSERT_STRINGIFY_HELPER(x) #x #define QTC_ASSERT_STRINGIFY(x) QTC_ASSERT_STRINGIFY_HELPER(x) |