summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-09-04 00:35:36 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-09-04 11:11:43 +0200
commit12fccb7175d0b76dc813689dc32050b628f9adb2 (patch)
treee874de7c2ee448f7a22e1c40913b87e256de41d2
parent9b34af565201bc55086945ac2e11cd0b47d844f6 (diff)
should fix stb_image symbols collisions
-rw-r--r--gunit_tests/drawTestBase.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gunit_tests/drawTestBase.cpp b/gunit_tests/drawTestBase.cpp
index a91b3b9..9a92414 100644
--- a/gunit_tests/drawTestBase.cpp
+++ b/gunit_tests/drawTestBase.cpp
@@ -1,12 +1,18 @@
#include "drawTestBase.h"
-#define STBI_ASSERT(x) ((void)0)
+/*#define STBI_ASSERT(x) ((void)0)
#define STBIW_ASSERT(x) ((void)0)
+*/
+
#define STB_IMAGE_IMPLEMENTATION
+#define STBIDEF static inline
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
+#define STB_IMAGE_WRITE_STATIC
+#define STBIWDEF static inline
#include "stb_image_write.h"
+
DrawTestBase::DrawTestBase() {
targetDir = fs::path(GTEST_PNG_ROOT) / ::testing::UnitTest::GetInstance()->current_test_suite()->name();
if (!fs::is_directory(targetDir) || !fs::exists(targetDir))