From a1853e0a8e847bb848161b476f7da28b9a726fbb Mon Sep 17 00:00:00 2001 From: HanzZ Date: Sat, 1 Sep 2012 08:13:19 +0200 Subject: [PATCH] snprintf on windows --- backends/libyahoo2/httpfetch.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/libyahoo2/httpfetch.cpp b/backends/libyahoo2/httpfetch.cpp index 90e52620..8cc417cb 100644 --- a/backends/libyahoo2/httpfetch.cpp +++ b/backends/libyahoo2/httpfetch.cpp @@ -2,6 +2,10 @@ #include "httpfetch.h" #include "transport/logging.h" +#if WIN32 +#define snprintf sprintf_s +#endif + DEFINE_LOGGER(logger, "HTTPFetch"); static int url_to_host_port_path(const char *url,