]> granicus.if.org Git - icinga2/blob - lib/base/win32.hpp
Update copyright headers for 2016
[icinga2] / lib / base / win32.hpp
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
4  *                                                                            *
5  * This program is free software; you can redistribute it and/or              *
6  * modify it under the terms of the GNU General Public License                *
7  * as published by the Free Software Foundation; either version 2             *
8  * of the License, or (at your option) any later version.                     *
9  *                                                                            *
10  * This program is distributed in the hope that it will be useful,            *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
13  * GNU General Public License for more details.                               *
14  *                                                                            *
15  * You should have received a copy of the GNU General Public License          *
16  * along with this program; if not, write to the Free Software Foundation     *
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
18  ******************************************************************************/
19
20 #ifndef WIN32_H
21 #define WIN32_H
22
23 #define WIN32_LEAN_AND_MEAN
24 #ifndef _WIN32_WINNT
25 #define _WIN32_WINNT _WIN32_WINNT_VISTA
26 #endif /* _WIN32_WINNT */
27 #define NOMINMAX
28 #include <winsock2.h>
29 #include <windows.h>
30 #include <ws2tcpip.h>
31 #include <imagehlp.h>
32 #include <shlwapi.h>
33
34 #include <direct.h>
35
36 #ifdef __MINGW32__
37 #       ifndef IPV6_V6ONLY
38 #               define IPV6_V6ONLY 27
39 #       endif /* IPV6_V6ONLY */
40 #endif /* __MINGW32__ */
41
42 typedef int socklen_t;
43
44 #define MAXPATHLEN MAX_PATH
45
46 #ifdef _MSC_VER
47 typedef DWORD pid_t;
48 #define strcasecmp stricmp
49 #endif /* _MSC_VER */
50
51 #endif /* WIN32_H */