1 /* |
|
2 * Copyright (C) 2008 Nuanti Ltd. |
|
3 * |
|
4 * This library is free software; you can redistribute it and/or |
|
5 * modify it under the terms of the GNU Library General Public |
|
6 * License as published by the Free Software Foundation; either |
|
7 * version 2 of the License, or (at your option) any later version. |
|
8 * |
|
9 * This library is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12 * Library General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Library General Public License |
|
15 * along with this library; see the file COPYING.LIB. If not, write to |
|
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
17 * Boston, MA 02110-1301, USA. |
|
18 * |
|
19 */ |
|
20 |
|
21 #define Config_H |
|
22 |
|
23 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H |
|
24 #include "autotoolsconfig.h" |
|
25 #endif |
|
26 |
|
27 #include <wtf/Platform.h> |
|
28 |
|
29 #ifdef __cplusplus |
|
30 #undef new |
|
31 #undef delete |
|
32 #include <wtf/FastMalloc.h> |
|
33 #endif |
|
34 |
|
35 #if OS(WINDOWS) && !COMPILER(GCC) |
|
36 #define JS_EXPORTDATA __declspec(dllimport) |
|
37 #define WEBKIT_EXPORTDATA __declspec(dllimport) |
|
38 #else |
|
39 #define JS_EXPORTDATA |
|
40 #define WEBKIT_EXPORTDATA |
|
41 #endif |
|
42 |
|
43 #if PLATFORM(WIN) |
|
44 #define WTF_PLATFORM_CF 1 |
|
45 #if defined(WIN_CAIRO) |
|
46 #define WTF_PLATFORM_CAIRO 1 |
|
47 #define WTF_USE_CURL 1 |
|
48 #else |
|
49 #define WTF_PLATFORM_CG 1 |
|
50 #define WTF_USE_CFNETWORK 1 |
|
51 #endif |
|
52 |
|
53 #undef _WIN32_WINNT |
|
54 #define _WIN32_WINNT 0x0500 |
|
55 |
|
56 #undef WINVER |
|
57 #define WINVER 0x0500 |
|
58 |
|
59 // If we don't define these, they get defined in windef.h. |
|
60 // We want to use std::min and std::max |
|
61 #undef max |
|
62 #define max max |
|
63 #undef min |
|
64 #define min min |
|
65 |
|
66 #undef _WINSOCKAPI_ |
|
67 #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h |
|
68 #endif // PLATFORM(WIN) |
|