From a1853e0a8e847bb848161b476f7da28b9a726fbb 2012-09-01 08:13:19 From: HanzZ Date: 2012-09-01 08:13:19 Subject: [PATCH] snprintf on windows --- diff --git a/backends/libyahoo2/httpfetch.cpp b/backends/libyahoo2/httpfetch.cpp index 90e526208952d1c8904b48fa410120d8d4f5679a..8cc417cbe483ae3a60ca6b314a4829c08b82f0bb 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,