Problem: build fails on VS2010 as it does not have snprintf

Solution: ifdef it
This commit is contained in:
Luca Boccassi
2019-02-17 19:27:50 +00:00
parent c63b0955e5
commit f83b13b2d6
2 changed files with 8 additions and 2 deletions

View File

@@ -56,9 +56,11 @@ zmq::io_thread_t::~io_thread_t ()
void zmq::io_thread_t::start ()
{
char name[16];
char name[16] = "";
#ifndef ZMQ_HAVE_WINDOWS
snprintf (name, sizeof (name), "IO/%u",
get_tid () - zmq::ctx_t::reaper_tid - 1);
#endif
// Start the underlying I/O thread.
_poller->start (name);
}