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
5efee6e0
Commit
5efee6e0
authored
Jan 13, 2014
by
Jeremy Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation on MinGW-w64
parent
676dada8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
125 deletions
+5
-125
windows.hpp
src/windows.hpp
+4
-125
test_srcfd.cpp
tests/test_srcfd.cpp
+1
-0
No files found.
src/windows.hpp
View file @
5efee6e0
...
...
@@ -20,140 +20,15 @@
#ifndef __ZMQ_WINDOWS_HPP_INCLUDED__
#define __ZMQ_WINDOWS_HPP_INCLUDED__
// The purpose of this header file is to turn on only the items actually
// needed on the windows platform.
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOGDICAPMASKS
#define NOGDICAPMASKS // CC_*, LC_*, PC_*, CP_*, TC_*, RC_
#endif
#ifndef NOVIRTUALKEYCODES
#define NOVIRTUALKEYCODES // VK_*
#endif
#ifndef NOWINMESSAGES
#define NOWINMESSAGES // WM_*, EM_*, LB_*, CB_*
#endif
#ifndef NOWINSTYLES
#define NOWINSTYLES // WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
#endif
#ifndef NOSYSMETRICS
#define NOSYSMETRICS // SM_*
#endif
#ifndef NOMENUS
#define NOMENUS // MF_*
#endif
#ifndef NOICONS
#define NOICONS // IDI_*
#endif
#ifndef NOKEYSTATES
#define NOKEYSTATES // MK_*
#endif
#ifndef NOSYSCOMMANDS
#define NOSYSCOMMANDS // SC_*
#endif
#ifndef NORASTEROPS
#define NORASTEROPS // Binary and Tertiary raster ops
#endif
#ifndef NOSHOWWINDOW
#define NOSHOWWINDOW // SW_*
#endif
#ifndef OEMRESOURCE
#define OEMRESOURCE // OEM Resource values
#endif
#ifndef NOATOM
#define NOATOM // Atom Manager routines
#endif
#ifndef NOCLIPBOARD
#define NOCLIPBOARD // Clipboard routines
#endif
#ifndef NOCOLOR
#define NOCOLOR // Screen colors
#endif
#ifndef NOCTLMGR
#define NOCTLMGR // Control and Dialog routines
#endif
#ifndef NODRAWTEXT
#define NODRAWTEXT // DrawText() and DT_*
#endif
#ifndef NOGDI
#define NOGDI // All GDI defines and routines
#endif
#ifndef NOKERNEL
#define NOKERNEL // All KERNEL defines and routines
#endif
#ifndef NOUSER
#define NOUSER // All USER defines and routines
#endif
#ifndef NONLS
#define NONLS // All NLS defines and routines
#endif
#ifndef NOMB
#define NOMB // MB_* and MessageBox()
#endif
#ifndef NOMEMMGR
#define NOMEMMGR // GMEM_*, LMEM_*, GHND, LHND, associated routines
#endif
#ifndef NOMETAFILE
#define NOMETAFILE // typedef METAFILEPICT
#endif
#ifndef NOMINMAX
#define NOMINMAX // Macros min(a,b) and max(a,b)
#endif
#ifndef NOMSG
#define NOMSG // typedef MSG and associated routines
#endif
#ifndef NOOPENFILE
#define NOOPENFILE // OpenFile(), OemToAnsi, AnsiToOem, and OF_*
#endif
#ifndef NOSCROLL
#define NOSCROLL // SB_* and scrolling routines
#endif
#ifndef NOSERVICE
#define NOSERVICE // All Service Controller routines, SERVICE_ equates, etc.
#endif
#ifndef NOSOUND
#define NOSOUND // Sound driver routines
#endif
#ifndef NOTEXTMETRIC
#define NOTEXTMETRIC // typedef TEXTMETRIC and associated routines
#endif
#ifndef NOWH
#define NOWH // SetWindowsHook and WH_*
#endif
#ifndef NOWINOFFSETS
#define NOWINOFFSETS // GWL_*, GCL_*, associated routines
#endif
#ifndef NOCOMM
#define NOCOMM // COMM driver routines
#endif
#ifndef NOKANJI
#define NOKANJI // Kanji support stuff.
#endif
#ifndef NOHELP
#define NOHELP // Help engine interface.
#endif
#ifndef NOPROFILER
#define NOPROFILER // Profiler interface.
#endif
#ifndef NODEFERWINDOWPOS
#define NODEFERWINDOWPOS // DeferWindowPos routines
#endif
#ifndef NOMCX
#define NOMCX // Modem Configuration ExtensionsA
#endif
// Set target version to Windows Server 2003, Windows XP/SP1 or higher.
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <windows.h>
#ifdef __MINGW32__
// Require Windows XP or higher with MinGW for getaddrinfo().
#if(_WIN32_WINNT >= 0x0501)
...
...
@@ -164,8 +39,12 @@
#endif
#include <winsock2.h>
#include <windows.h>
#include <mswsock.h>
#if !defined __MINGW64_VERSION_MAJOR && !defined __MINGW64_VERSION_MINOR
#include <Mstcpip.h>
#endif
#include <ws2tcpip.h>
#include <ipexport.h>
...
...
tests/test_srcfd.cpp
View file @
5efee6e0
...
...
@@ -24,6 +24,7 @@
#ifdef _WIN32
#include <Winsock2.h>
#include <Ws2tcpip.h>
#define usleep(a) Sleep((a) / 1000)
#else
#include <sys/types.h>
#include <sys/socket.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