libtest: fixed linker errors on msvc

Bug: https://github.com/bagder/curl/pull/144
This commit is contained in:
Sergei Nikulov 2015-03-02 15:58:27 +03:00 committed by Daniel Stenberg
parent df5578a7a3
commit 43eb8b2874
11 changed files with 5 additions and 29 deletions

View File

@ -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;

View File

@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"
#include <curl/mprintf.h>
#include "memdebug.h"
static const char *HOSTHEADER = "Host: www.host.foo.com";

View File

@ -26,9 +26,6 @@
*/
#include "test.h"
#include <curl/mprintf.h>
#include "memdebug.h"

View File

@ -28,8 +28,6 @@
#include <fcntl.h>
#endif
#include <curl/mprintf.h>
#include "memdebug.h"
/* build request url */

View File

@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"
#include <curl/mprintf.h>
#include "memdebug.h"
/* build request url */

View File

@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"
#include <curl/mprintf.h>
#include "memdebug.h"
/* build request url */

View File

@ -37,8 +37,6 @@
# include <fcntl.h>
#endif
#include <curl/mprintf.h>
#include "warnless.h"
#include "memdebug.h"

View File

@ -28,8 +28,6 @@
#include <fcntl.h>
#endif
#include <curl/mprintf.h>
#include "memdebug.h"
/* build request url */

View File

@ -20,9 +20,6 @@
*
***************************************************************************/
#include "test.h"
#include <curl/mprintf.h>
#include "memdebug.h"
#define THREADS 2

View File

@ -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

View File

@ -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"