From 4e10882e06cddd886a85950e8876278c81b9cf42 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 7 Jun 2010 13:35:30 +0200 Subject: [PATCH] example: fix strdup() for MSVC compiles MSVC has a _strdup() that we better use. This was reported in bug --- example/ssh2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/ssh2.c b/example/ssh2.c index d051306..fc1ac53 100644 --- a/example/ssh2.c +++ b/example/ssh2.c @@ -32,6 +32,11 @@ #include #endif +#if defined(_WIN32) && !defined(__GNUC__) +/* plain MSVC setups have no normal strdup */ +#define strdup _strdup +#endif + #include #include #include