2 * Copyright (C) 2008 Nuanti Ltd.
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.
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.
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.
23 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
24 #if defined(BUILDING_WITH_CMAKE)
25 #include "cmakeconfig.h"
27 #include "autotoolsconfig.h"
31 #include <wtf/Platform.h>
32 #include <wtf/ExportMacros.h>
34 #include <runtime/JSExportMacros.h>
37 // On MSW, wx headers need to be included before windows.h is.
38 // The only way we can always ensure this is if we include wx here.
47 #include <wtf/FastMalloc.h>
53 #if !defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
54 #define BUILDING_ON_LEOPARD 1
55 #elif !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
56 #define BUILDING_ON_SNOW_LEOPARD 1
58 #endif // PLATFORM(MAC)
61 // If we don't define these, they get defined in windef.h.
62 // We want to use std::min and std::max
71 #if PLATFORM(WIN_CAIRO)
72 #define WTF_USE_CAIRO 1
73 #define WTF_USE_CURL 1
76 #define WTF_USE_CFNETWORK 1
80 #define _WIN32_WINNT 0x0500
86 #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
87 #endif // PLATFORM(WIN)