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
7d672d3a
Commit
7d672d3a
authored
Nov 03, 2009
by
malosek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes for MSVC++ 2005 build
parent
7cbdcc95
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
app_thread.cpp
src/app_thread.cpp
+3
-0
fd.hpp
src/fd.hpp
+1
-1
windows.hpp
src/windows.hpp
+5
-0
No files found.
src/app_thread.cpp
View file @
7d672d3a
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
#if defined ZMQ_HAVE_WINDOWS
#if defined ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#include "windows.hpp"
#if defined _MSC_VER
#include <intrin.h>
#endif
#else
#else
#include <unistd.h>
#include <unistd.h>
#endif
#endif
...
...
src/fd.hpp
View file @
7d672d3a
...
@@ -31,7 +31,7 @@ namespace zmq
...
@@ -31,7 +31,7 @@ namespace zmq
#ifdef ZMQ_HAVE_WINDOWS
#ifdef ZMQ_HAVE_WINDOWS
#if defined _MSC_VER &&_MSC_VER <= 1400
#if defined _MSC_VER &&_MSC_VER <= 1400
typedef
UINT_PTR
fd_t
;
typedef
UINT_PTR
fd_t
;
enum
{
retired_fd
=
(
fd_t
)(
~
0
)}
enum
{
retired_fd
=
(
fd_t
)(
~
0
)}
;
#else
#else
typedef
SOCKET
fd_t
;
typedef
SOCKET
fd_t
;
enum
{
retired_fd
=
INVALID_SOCKET
};
enum
{
retired_fd
=
INVALID_SOCKET
};
...
...
src/windows.hpp
View file @
7d672d3a
...
@@ -47,6 +47,11 @@
...
@@ -47,6 +47,11 @@
#include <windows.h>
#include <windows.h>
// MSVC++ 2005 on Win2000 does not define _WIN32_WINNT.
#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
#endif
// Enable winsock (not included when WIN32_LEAN_AND_MEAN is defined).
// Enable winsock (not included when WIN32_LEAN_AND_MEAN is defined).
#if(_WIN32_WINNT >= 0x0400)
#if(_WIN32_WINNT >= 0x0400)
#include <winsock2.h>
#include <winsock2.h>
...
...
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