summaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-07-19 06:44:46 +0200
committerYang Tse <yangsita@gmail.com>2013-07-19 12:33:10 +0200
commit6bcacff1a52df5818c2a12807de6e7ca896da508 (patch)
tree9b32191db1fdcf2f3a78df13b4c3ee732b51b088 /lib/memdebug.c
parent12d01cb6fa914519d1ced0223cd9ff96a2634de9 (diff)
downloadcurl-6bcacff1a52df5818c2a12807de6e7ca896da508.tar.gz
WIN32 MemoryTracking: require UNICODE for wide strdup code support
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index b3ddfb430..4e4f84cb2 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -239,7 +239,7 @@ char *curl_dostrdup(const char *str, int line, const char *source)
return mem;
}
-#ifdef WIN32
+#if defined(WIN32) && defined(UNICODE)
wchar_t *curl_dowcsdup(const wchar_t *str, int line, const char *source)
{
wchar_t *mem;