~ubuntu-branches/ubuntu/saucy/zeromq3/saucy

« back to all changes in this revision

Viewing changes to src/windows.hpp

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-06-04 21:21:09 UTC
  • Revision ID: package-import@ubuntu.com-20120604212109-b7b3m0rn21o8oo2q
Tags: upstream-3.1.0~beta+dfsg
ImportĀ upstreamĀ versionĀ 3.1.0~beta+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
5
 
 
6
    This file is part of 0MQ.
 
7
 
 
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.
 
12
 
 
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.
 
17
 
 
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/>.
 
20
*/
 
21
 
 
22
#ifndef __ZMQ_WINDOWS_HPP_INCLUDED__
 
23
#define __ZMQ_WINDOWS_HPP_INCLUDED__
 
24
 
 
25
//  The purpose of this header file is to turn on only the items actually
 
26
//  needed on the windows platform.
 
27
 
 
28
#ifndef _CRT_SECURE_NO_WARNINGS
 
29
#define _CRT_SECURE_NO_WARNINGS
 
30
#endif
 
31
#ifndef WIN32_LEAN_AND_MEAN
 
32
#define WIN32_LEAN_AND_MEAN
 
33
#endif
 
34
#ifndef NOGDICAPMASKS
 
35
#define NOGDICAPMASKS     // CC_*, LC_*, PC_*, CP_*, TC_*, RC_
 
36
#endif
 
37
#ifndef NOVIRTUALKEYCODES
 
38
#define NOVIRTUALKEYCODES // VK_*
 
39
#endif
 
40
#ifndef NOWINMESSAGES
 
41
#define NOWINMESSAGES     // WM_*, EM_*, LB_*, CB_*
 
42
#endif
 
43
#ifndef NOWINSTYLES
 
44
#define NOWINSTYLES       // WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
 
45
#endif
 
46
#ifndef NOSYSMETRICS
 
47
#define NOSYSMETRICS      // SM_*
 
48
#endif
 
49
#ifndef NOMENUS
 
50
#define NOMENUS           // MF_*
 
51
#endif
 
52
#ifndef NOICONS
 
53
#define NOICONS           // IDI_*
 
54
#endif
 
55
#ifndef NOKEYSTATES
 
56
#define NOKEYSTATES       // MK_*
 
57
#endif
 
58
#ifndef NOSYSCOMMANDS
 
59
#define NOSYSCOMMANDS     // SC_*
 
60
#endif
 
61
#ifndef NORASTEROPS
 
62
#define NORASTEROPS       // Binary and Tertiary raster ops
 
63
#endif
 
64
#ifndef NOSHOWWINDOW
 
65
#define NOSHOWWINDOW      // SW_*
 
66
#endif
 
67
#ifndef OEMRESOURCE
 
68
#define OEMRESOURCE       // OEM Resource values
 
69
#endif
 
70
#ifndef NOATOM
 
71
#define NOATOM            // Atom Manager routines
 
72
#endif
 
73
#ifndef NOCLIPBOARD
 
74
#define NOCLIPBOARD       // Clipboard routines
 
75
#endif
 
76
#ifndef NOCOLOR
 
77
#define NOCOLOR           // Screen colors
 
78
#endif
 
79
#ifndef NOCTLMGR
 
80
#define NOCTLMGR          // Control and Dialog routines
 
81
#endif
 
82
#ifndef NODRAWTEXT
 
83
#define NODRAWTEXT        // DrawText() and DT_*
 
84
#endif
 
85
#ifndef NOGDI
 
86
#define NOGDI             // All GDI defines and routines
 
87
#endif
 
88
#ifndef NOKERNEL
 
89
#define NOKERNEL          // All KERNEL defines and routines
 
90
#endif
 
91
#ifndef NOUSER
 
92
#define NOUSER            // All USER defines and routines
 
93
#endif
 
94
#ifndef NONLS
 
95
#define NONLS             // All NLS defines and routines
 
96
#endif
 
97
#ifndef NOMB
 
98
#define NOMB              // MB_* and MessageBox()
 
99
#endif
 
100
#ifndef NOMEMMGR
 
101
#define NOMEMMGR          // GMEM_*, LMEM_*, GHND, LHND, associated routines
 
102
#endif
 
103
#ifndef NOMETAFILE
 
104
#define NOMETAFILE        // typedef METAFILEPICT
 
105
#endif
 
106
#ifndef NOMINMAX
 
107
#define NOMINMAX          // Macros min(a,b) and max(a,b)
 
108
#endif
 
109
#ifndef NOMSG
 
110
#define NOMSG             // typedef MSG and associated routines
 
111
#endif
 
112
#ifndef NOOPENFILE
 
113
#define NOOPENFILE        // OpenFile(), OemToAnsi, AnsiToOem, and OF_*
 
114
#endif
 
115
#ifndef NOSCROLL
 
116
#define NOSCROLL          // SB_* and scrolling routines
 
117
#endif
 
118
#ifndef NOSERVICE
 
119
#define NOSERVICE         // All Service Controller routines, SERVICE_ equates, etc.
 
120
#endif
 
121
#ifndef NOSOUND
 
122
#define NOSOUND           // Sound driver routines
 
123
#endif
 
124
#ifndef NOTEXTMETRIC
 
125
#define NOTEXTMETRIC      // typedef TEXTMETRIC and associated routines
 
126
#endif
 
127
#ifndef NOWH
 
128
#define NOWH              // SetWindowsHook and WH_*
 
129
#endif
 
130
#ifndef NOWINOFFSETS
 
131
#define NOWINOFFSETS      // GWL_*, GCL_*, associated routines
 
132
#endif
 
133
#ifndef NOCOMM
 
134
#define NOCOMM            // COMM driver routines
 
135
#endif
 
136
#ifndef NOKANJI
 
137
#define NOKANJI           // Kanji support stuff.
 
138
#endif
 
139
#ifndef NOHELP
 
140
#define NOHELP            // Help engine interface.
 
141
#endif
 
142
#ifndef NOPROFILER
 
143
#define NOPROFILER        // Profiler interface.
 
144
#endif
 
145
#ifndef NODEFERWINDOWPOS
 
146
#define NODEFERWINDOWPOS  // DeferWindowPos routines
 
147
#endif
 
148
#ifndef NOMCX
 
149
#define NOMCX             // Modem Configuration ExtensionsA
 
150
#endif
 
151
 
 
152
//  Set target version to Windows Server 2003, Windows XP/SP1 or higher.
 
153
#ifndef _WIN32_WINNT
 
154
#define _WIN32_WINNT 0x0501
 
155
#endif
 
156
 
 
157
#include <windows.h>
 
158
 
 
159
#ifdef __MINGW32__
 
160
//  Require Windows XP or higher with MinGW for getaddrinfo().
 
161
#if(_WIN32_WINNT >= 0x0501)
 
162
#else
 
163
#undef _WIN32_WINNT
 
164
#define _WIN32_WINNT 0x0501
 
165
#endif
 
166
#endif
 
167
 
 
168
#include <winsock2.h>
 
169
#include <mswsock.h>
 
170
 
 
171
#include <ws2tcpip.h>
 
172
#include <ipexport.h>
 
173
#include <process.h>
 
174
 
 
175
//  In MinGW environment AI_NUMERICSERV is not defined.
 
176
#ifndef AI_NUMERICSERV
 
177
#define AI_NUMERICSERV 0x0400
 
178
#endif
 
179
#endif