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
c2dcc806
Commit
c2dcc806
authored
Apr 25, 2015
by
somdoron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change minimum version to windows vista and implement dummy condition variable for lower versions
parent
dbacc342
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
30 deletions
+45
-30
platform.hpp.in
builds/cmake/platform.hpp.in
+0
-11
platform.hpp
builds/mingw32/platform.hpp
+0
-9
platform.hpp
builds/msvc/platform.hpp
+0
-8
condition_variable.hpp
src/condition_variable.hpp
+43
-0
windows.hpp
src/windows.hpp
+2
-2
No files found.
builds/cmake/platform.hpp.in
View file @
c2dcc806
...
...
@@ -86,14 +86,4 @@
#cmakedefine ZMQ_HAVE_WINDOWS
#ifdef ZMQ_HAVE_WINDOWS
#if defined _WIN32_WINNT && _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
#endif
#endif
\ No newline at end of file
builds/mingw32/platform.hpp
View file @
c2dcc806
...
...
@@ -29,13 +29,4 @@
#define ZMQ_HAVE_WINDOWS
#if defined _WIN32_WINNT && _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
#endif
builds/msvc/platform.hpp
View file @
c2dcc806
...
...
@@ -29,12 +29,4 @@
#define ZMQ_HAVE_WINDOWS
#if defined _WIN32_WINNT && _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
#endif
src/condition_variable.hpp
View file @
c2dcc806
...
...
@@ -31,6 +31,47 @@
#include "windows.hpp"
// Condition variable is supported from Windows Vista only, to use condition variable define _WIN32_WINNT to 0x0600
#if _WIN32_WINNT < 0x0600
namespace
zmq
{
class
condition_variable_t
{
public
:
inline
condition_variable_t
()
{
zmq_assert
(
false
);
}
inline
~
condition_variable_t
()
{
}
inline
int
wait
(
mutex_t
*
mutex_
,
int
timeout_
)
{
zmq_assert
(
false
);
return
-
1
;
}
inline
void
broadcast
()
{
zmq_assert
(
false
);
}
private
:
// Disable copy construction and assignment.
condition_variable_t
(
const
condition_variable_t
&
);
void
operator
=
(
const
condition_variable_t
&
);
};
}
#else
namespace
zmq
{
...
...
@@ -79,6 +120,8 @@ namespace zmq
}
#endif
#else
#include <pthread.h>
...
...
src/windows.hpp
View file @
c2dcc806
...
...
@@ -27,9 +27,9 @@
#define NOMINMAX // Macros min(a,b) and max(a,b)
#endif
// Set target version to Windows Server 200
3, Windows XP/SP1 or higher
.
// Set target version to Windows Server 200
8, Windows Vista or higher. Windows XP (0x0501) is also supported but without client & server socket types
.
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0
501
#define _WIN32_WINNT 0x0
600
#endif
#ifdef __MINGW32__
...
...
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