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)