From 43eb8b28748b71931299ab31d0baa909dbab44a0 Mon Sep 17 00:00:00 2001 From: Sergei Nikulov Date: Mon, 2 Mar 2015 15:58:27 +0300 Subject: libtest: fixed linker errors on msvc Bug: https://github.com/bagder/curl/pull/144 --- tests/libtest/lib1515.c | 3 --- tests/libtest/lib506.c | 3 --- tests/libtest/lib557.c | 3 --- tests/libtest/lib568.c | 2 -- tests/libtest/lib569.c | 3 --- tests/libtest/lib570.c | 3 --- tests/libtest/lib571.c | 2 -- tests/libtest/lib572.c | 2 -- tests/libtest/lib586.c | 3 --- tests/libtest/test.h | 4 ++++ tests/libtest/testtrace.c | 6 +----- 11 files changed, 5 insertions(+), 29 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/lib1515.c b/tests/libtest/lib1515.c index 4ac9fcfdc..d5c8f7d08 100644 --- a/tests/libtest/lib1515.c +++ b/tests/libtest/lib1515.c @@ -39,9 +39,6 @@ #define sleep(s) Sleep(s * 1000) #endif -#define _MPRINTF_REPLACE -#include - static int debug_callback(CURL *curl, curl_infotype info, char *msg, size_t len, void *ptr) { (void)curl; diff --git a/tests/libtest/lib506.c b/tests/libtest/lib506.c index 4dad0d98a..6dcc36d3c 100644 --- a/tests/libtest/lib506.c +++ b/tests/libtest/lib506.c @@ -20,9 +20,6 @@ * ***************************************************************************/ #include "test.h" - -#include - #include "memdebug.h" static const char *HOSTHEADER = "Host: www.host.foo.com"; diff --git a/tests/libtest/lib557.c b/tests/libtest/lib557.c index 7e5f9e94f..b88285217 100644 --- a/tests/libtest/lib557.c +++ b/tests/libtest/lib557.c @@ -26,9 +26,6 @@ */ #include "test.h" - -#include - #include "memdebug.h" diff --git a/tests/libtest/lib568.c b/tests/libtest/lib568.c index 4b15821f2..12fc5e5d9 100644 --- a/tests/libtest/lib568.c +++ b/tests/libtest/lib568.c @@ -28,8 +28,6 @@ #include #endif -#include - #include "memdebug.h" /* build request url */ diff --git a/tests/libtest/lib569.c b/tests/libtest/lib569.c index a434d7459..222f1e024 100644 --- a/tests/libtest/lib569.c +++ b/tests/libtest/lib569.c @@ -20,9 +20,6 @@ * ***************************************************************************/ #include "test.h" - -#include - #include "memdebug.h" /* build request url */ diff --git a/tests/libtest/lib570.c b/tests/libtest/lib570.c index fe10de54a..93ccab8ea 100644 --- a/tests/libtest/lib570.c +++ b/tests/libtest/lib570.c @@ -20,9 +20,6 @@ * ***************************************************************************/ #include "test.h" - -#include - #include "memdebug.h" /* build request url */ diff --git a/tests/libtest/lib571.c b/tests/libtest/lib571.c index 78c1c95a3..3270300de 100644 --- a/tests/libtest/lib571.c +++ b/tests/libtest/lib571.c @@ -37,8 +37,6 @@ # include #endif -#include - #include "warnless.h" #include "memdebug.h" diff --git a/tests/libtest/lib572.c b/tests/libtest/lib572.c index 3df4d036a..9b23c01a2 100644 --- a/tests/libtest/lib572.c +++ b/tests/libtest/lib572.c @@ -28,8 +28,6 @@ #include #endif -#include - #include "memdebug.h" /* build request url */ diff --git a/tests/libtest/lib586.c b/tests/libtest/lib586.c index 4ee0ad31c..a1412b5f3 100644 --- a/tests/libtest/lib586.c +++ b/tests/libtest/lib586.c @@ -20,9 +20,6 @@ * ***************************************************************************/ #include "test.h" - -#include - #include "memdebug.h" #define THREADS 2 diff --git a/tests/libtest/test.h b/tests/libtest/test.h index fb95996aa..468eda98a 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -40,6 +40,10 @@ # include "select.h" #endif +#define _MPRINTF_REPLACE +#include + + #define test_setopt(A,B,C) \ if((res = curl_easy_setopt((A),(B),(C))) != CURLE_OK) goto test_cleanup diff --git a/tests/libtest/testtrace.c b/tests/libtest/testtrace.c index c977d2105..8d9c6b814 100644 --- a/tests/libtest/testtrace.c +++ b/tests/libtest/testtrace.c @@ -21,10 +21,6 @@ ***************************************************************************/ #include "test.h" - -#define _MPRINTF_REPLACE /* use our functions only */ -#include - #include "testutil.h" #include "testtrace.h" #include "memdebug.h" @@ -34,7 +30,7 @@ struct libtest_trace_cfg libtest_debug_config; static time_t epoch_offset; /* for test time tracing */ static int known_offset; /* for test time tracing */ -static +static void libtest_debug_dump(const char *timebuf, const char *text, FILE *stream, const unsigned char *ptr, size_t size, int nohex) { -- cgit v1.2.3