Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
cb266ee0
Commit
cb266ee0
authored
Oct 24, 2017
by
Luca Boccassi
Committed by
GitHub
Oct 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2619 from diorcety/winxp
Partial Windows XP support
parents
d4595421
81327af5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
zmq.h
include/zmq.h
+2
-3
condition_variable.hpp
src/condition_variable.hpp
+16
-3
windows.hpp
src/windows.hpp
+2
-3
No files found.
include/zmq.h
View file @
cb266ee0
...
...
@@ -66,10 +66,9 @@ extern "C" {
#ifdef __MINGW32__
// Require Windows XP or higher with MinGW for getaddrinfo().
#if(_WIN32_WINNT >= 0x0
600
)
#if(_WIN32_WINNT >= 0x0
501
)
#else
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#error You need at least Windows XP target
#endif
#endif
#include <winsock2.h>
...
...
src/condition_variable.hpp
View file @
cb266ee0
...
...
@@ -39,9 +39,22 @@
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#if defined(_MSC_VER)
#if _MSC_VER >= 1800
#define _SUPPORT_CONDITION_VARIABLE 1
#else
#define _SUPPORT_CONDITION_VARIABLE 0
#endif
#else
#if _cplusplus >= 201103L
#define _SUPPORT_CONDITION_VARIABLE 1
#else
#define _SUPPORT_CONDITION_VARIABLE 0
#endif
#endif
// Condition variable is supported from Windows Vista only, to use condition variable define _WIN32_WINNT to 0x0600
#if _WIN32_WINNT < 0x0600
#if _WIN32_WINNT < 0x0600
&& !_SUPPORT_CONDITION_VARIABLE
namespace
zmq
{
...
...
@@ -81,7 +94,7 @@ namespace zmq
#else
#if
def ZMQ_HAVE_WINDOWS_TARGET_XP
#if
_SUPPORT_CONDITION_VARIABLE || defined(ZMQ_HAVE_WINDOWS_TARGET_XP)
#include <condition_variable>
#include <mutex>
#endif
...
...
@@ -89,7 +102,7 @@ namespace zmq
namespace
zmq
{
#if
ndef ZMQ_HAVE_WINDOWS_TARGET_XP
#if
!defined(ZMQ_HAVE_WINDOWS_TARGET_XP) && _WIN32_WINNT >= 0x0600
class
condition_variable_t
{
public
:
...
...
src/windows.hpp
View file @
cb266ee0
...
...
@@ -49,10 +49,9 @@
#ifdef __MINGW32__
// Require Windows XP or higher with MinGW for getaddrinfo().
#if(_WIN32_WINNT >= 0x0
600
)
#if(_WIN32_WINNT >= 0x0
501
)
#else
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#error You need at least Windows XP target
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment