2
Copyright (c) 2010-2011 250bpm s.r.o.
3
Copyright (c) 2007-2009 iMatix Corporation
4
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
6
This file is part of 0MQ.
8
0MQ is free software; you can redistribute it and/or modify it under
9
the terms of the GNU Lesser General Public License as published by
10
the Free Software Foundation; either version 3 of the License, or
11
(at your option) any later version.
13
0MQ is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU Lesser General Public License for more details.
18
You should have received a copy of the GNU Lesser General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __ZMQ_WINDOWS_HPP_INCLUDED__
23
#define __ZMQ_WINDOWS_HPP_INCLUDED__
25
// The purpose of this header file is to turn on only the items actually
26
// needed on the windows platform.
28
#ifndef _CRT_SECURE_NO_WARNINGS
29
#define _CRT_SECURE_NO_WARNINGS
31
#ifndef WIN32_LEAN_AND_MEAN
32
#define WIN32_LEAN_AND_MEAN
35
#define NOGDICAPMASKS // CC_*, LC_*, PC_*, CP_*, TC_*, RC_
37
#ifndef NOVIRTUALKEYCODES
38
#define NOVIRTUALKEYCODES // VK_*
41
#define NOWINMESSAGES // WM_*, EM_*, LB_*, CB_*
44
#define NOWINSTYLES // WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
47
#define NOSYSMETRICS // SM_*
50
#define NOMENUS // MF_*
53
#define NOICONS // IDI_*
56
#define NOKEYSTATES // MK_*
59
#define NOSYSCOMMANDS // SC_*
62
#define NORASTEROPS // Binary and Tertiary raster ops
65
#define NOSHOWWINDOW // SW_*
68
#define OEMRESOURCE // OEM Resource values
71
#define NOATOM // Atom Manager routines
74
#define NOCLIPBOARD // Clipboard routines
77
#define NOCOLOR // Screen colors
80
#define NOCTLMGR // Control and Dialog routines
83
#define NODRAWTEXT // DrawText() and DT_*
86
#define NOGDI // All GDI defines and routines
89
#define NOKERNEL // All KERNEL defines and routines
92
#define NOUSER // All USER defines and routines
95
#define NONLS // All NLS defines and routines
98
#define NOMB // MB_* and MessageBox()
101
#define NOMEMMGR // GMEM_*, LMEM_*, GHND, LHND, associated routines
104
#define NOMETAFILE // typedef METAFILEPICT
107
#define NOMINMAX // Macros min(a,b) and max(a,b)
110
#define NOMSG // typedef MSG and associated routines
113
#define NOOPENFILE // OpenFile(), OemToAnsi, AnsiToOem, and OF_*
116
#define NOSCROLL // SB_* and scrolling routines
119
#define NOSERVICE // All Service Controller routines, SERVICE_ equates, etc.
122
#define NOSOUND // Sound driver routines
125
#define NOTEXTMETRIC // typedef TEXTMETRIC and associated routines
128
#define NOWH // SetWindowsHook and WH_*
131
#define NOWINOFFSETS // GWL_*, GCL_*, associated routines
134
#define NOCOMM // COMM driver routines
137
#define NOKANJI // Kanji support stuff.
140
#define NOHELP // Help engine interface.
143
#define NOPROFILER // Profiler interface.
145
#ifndef NODEFERWINDOWPOS
146
#define NODEFERWINDOWPOS // DeferWindowPos routines
149
#define NOMCX // Modem Configuration ExtensionsA
152
// Set target version to Windows Server 2003, Windows XP/SP1 or higher.
154
#define _WIN32_WINNT 0x0501
160
// Require Windows XP or higher with MinGW for getaddrinfo().
161
#if(_WIN32_WINNT >= 0x0501)
164
#define _WIN32_WINNT 0x0501
168
#include <winsock2.h>
171
#include <ws2tcpip.h>
172
#include <ipexport.h>
175
// In MinGW environment AI_NUMERICSERV is not defined.
176
#ifndef AI_NUMERICSERV
177
#define AI_NUMERICSERV 0x0400