Skip to content

Commit

Permalink
libtest: fixed linker errors on msvc
Browse files Browse the repository at this point in the history
Bug: #144
  • Loading branch information
snikulov authored and bagder committed Mar 3, 2015
1 parent df5578a commit 43eb8b2
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 29 deletions.
3 changes: 0 additions & 3 deletions tests/libtest/lib1515.c
Expand Up @@ -39,9 +39,6 @@
#define sleep(s) Sleep(s * 1000)
#endif

#define _MPRINTF_REPLACE
#include <curl/mprintf.h>

static int debug_callback(CURL *curl, curl_infotype info, char *msg, size_t len, void *ptr)
{
(void)curl;
Expand Down
3 changes: 0 additions & 3 deletions tests/libtest/lib506.c
Expand Up @@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"

#include <curl/mprintf.h>

#include "memdebug.h"

static const char *HOSTHEADER = "Host: www.host.foo.com";
Expand Down
3 changes: 0 additions & 3 deletions tests/libtest/lib557.c
Expand Up @@ -26,9 +26,6 @@
*/

#include "test.h"

#include <curl/mprintf.h>

#include "memdebug.h"


Expand Down
2 changes: 0 additions & 2 deletions tests/libtest/lib568.c
Expand Up @@ -28,8 +28,6 @@
#include <fcntl.h>
#endif

#include <curl/mprintf.h>

#include "memdebug.h"

/* build request url */
Expand Down
3 changes: 0 additions & 3 deletions tests/libtest/lib569.c
Expand Up @@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"

#include <curl/mprintf.h>

#include "memdebug.h"

/* build request url */
Expand Down
3 changes: 0 additions & 3 deletions tests/libtest/lib570.c
Expand Up @@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"

#include <curl/mprintf.h>

#include "memdebug.h"

/* build request url */
Expand Down
2 changes: 0 additions & 2 deletions tests/libtest/lib571.c
Expand Up @@ -37,8 +37,6 @@
# include <fcntl.h>
#endif

#include <curl/mprintf.h>

#include "warnless.h"
#include "memdebug.h"

Expand Down
2 changes: 0 additions & 2 deletions tests/libtest/lib572.c
Expand Up @@ -28,8 +28,6 @@
#include <fcntl.h>
#endif

#include <curl/mprintf.h>

#include "memdebug.h"

/* build request url */
Expand Down
3 changes: 0 additions & 3 deletions tests/libtest/lib586.c
Expand Up @@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"

#include <curl/mprintf.h>

#include "memdebug.h"

#define THREADS 2
Expand Down
4 changes: 4 additions & 0 deletions tests/libtest/test.h
Expand Up @@ -40,6 +40,10 @@
# include "select.h"
#endif

#define _MPRINTF_REPLACE
#include <curl/mprintf.h>


#define test_setopt(A,B,C) \
if((res = curl_easy_setopt((A),(B),(C))) != CURLE_OK) goto test_cleanup

Expand Down
6 changes: 1 addition & 5 deletions tests/libtest/testtrace.c
Expand Up @@ -21,10 +21,6 @@
***************************************************************************/

#include "test.h"

#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "testutil.h"
#include "testtrace.h"
#include "memdebug.h"
Expand All @@ -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)
{
Expand Down

0 comments on commit 43eb8b2

Please sign in to comment.