From 054ba83181124f90d0e373e74a6b8ea7c60d7488 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 28 Jul 2025 19:35:27 +0200 Subject: [PATCH] step 2 --- tests/libtest/first.h | 3 +++ tests/libtest/memptr.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/libtest/first.h b/tests/libtest/first.h index e64c87e269..63770202e9 100644 --- a/tests/libtest/first.h +++ b/tests/libtest/first.h @@ -54,6 +54,9 @@ extern int unitfail; /* for unittests */ #include "curl_printf.h" +#ifndef UNITTESTS +#include "curl_memory.h" +#endif #include "memdebug.h" /* GCC <4.6 does not support '#pragma GCC diagnostic push' and diff --git a/tests/libtest/memptr.c b/tests/libtest/memptr.c index 64e9fd7f8a..400e72c41a 100644 --- a/tests/libtest/memptr.c +++ b/tests/libtest/memptr.c @@ -23,8 +23,6 @@ ***************************************************************************/ #include "first.h" -#include "curl_memory.h" - #ifndef CURL_STATICLIB #if defined(_MSC_VER) && defined(_DLL)