mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Merge pull request #1198 from toussa/master
Problem : Build failed with MinGW on windows
This commit is contained in:
commit
43028c7229
@ -361,7 +361,11 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
|
|||||||
else
|
else
|
||||||
if (signaler_port != 0) {
|
if (signaler_port != 0) {
|
||||||
wchar_t mutex_name [MAX_PATH];
|
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);
|
swprintf (mutex_name, MAX_PATH, L"Global\\zmq-signaler-port-%d", signaler_port);
|
||||||
|
# endif
|
||||||
|
|
||||||
# if !defined _WIN32_WCE
|
# if !defined _WIN32_WCE
|
||||||
sync = CreateMutexW (&sa, FALSE, mutex_name);
|
sync = CreateMutexW (&sa, FALSE, mutex_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user