Problem: no windows UWP support

* add define for windows/UWP

* prevent issue with COM references

* gettickcount not available on uwp

* add compiler definitions

* add convenitnece cmake file

* brute force uwp compilation

* fix compiler version

* cosmetics
This commit is contained in:
bbdb68
2017-04-04 10:50:33 +02:00
committed by Luca Boccassi
parent e224cc9061
commit 1d58a00992
8 changed files with 39 additions and 11 deletions

View File

@@ -189,7 +189,7 @@ int zmq::tcp_listener_t::set_address (const char *addr_)
errno = wsa_error_to_errno (WSAGetLastError ());
return -1;
}
#if !defined _WIN32_WCE
#if !defined _WIN32_WCE && !defined ZMQ_HAVE_WINDOWS_UWP
// On Windows, preventing sockets to be inherited by child processes.
BOOL brc = SetHandleInformation ((HANDLE) s, HANDLE_FLAG_INHERIT, 0);
win_assert (brc);
@@ -288,7 +288,7 @@ zmq::fd_t zmq::tcp_listener_t::accept ()
last_error == WSAENOBUFS);
return retired_fd;
}
#if !defined _WIN32_WCE
#if !defined _WIN32_WCE && !defined ZMQ_HAVE_WINDOWS_UWP
// On Windows, preventing sockets to be inherited by child processes.
BOOL brc = SetHandleInformation ((HANDLE) sock, HANDLE_FLAG_INHERIT, 0);
win_assert (brc);