Commit 7c5906d1 authored by Michaël Paul's avatar Michaël Paul

Problem : Build failed with MinGW on windows

parent ca0a216f
......@@ -361,7 +361,11 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
else
if (signaler_port != 0) {
wchar_t mutex_name [MAX_PATH];
# ifdef __MINGW32__
_snwprintf (mutex_name, MAX_PATH, L"Global\\zmq-signaler-port-%d", signaler_port);
# else
swprintf (mutex_name, MAX_PATH, L"Global\\zmq-signaler-port-%d", signaler_port);
# endif
# if !defined _WIN32_WCE
sync = CreateMutexW (&sa, FALSE, mutex_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment