2 * Copyright (C) 2004, 2005, 2006 Apple Inc.
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.
21 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
22 #include "autotoolsconfig.h"
25 #include <wtf/Platform.h>
30 #define HAVE_FUNC_USLEEP 1
31 #endif /* __APPLE__ */
36 #define _WIN32_WINNT 0x0500
43 // If we don't define these, they get defined in windef.h.
44 // We want to use std::min and std::max.
52 // CURL needs winsock, so don't prevent inclusion of it
55 #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
59 #endif /* PLATFORM(WIN_OS) */
61 // On MSW, wx headers need to be included before windows.h is.
62 // The only way we can always ensure this is if we include wx here.
64 // The defines in KeyboardCodes.h conflict with Windows as well, and the only way I've found
65 // to address the problem is include KeyboarddCodes.h before windows.h, so do it here.
66 #include "KeyboardCodes.h"
70 #if !PLATFORM(SYMBIAN)
77 // These undefs match up with defines in WebCorePrefix.h for Mac OS X.
78 // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
81 #include <wtf/FastMalloc.h>
85 // this breaks compilation of <QFontDatabase>, at least, so turn it off for now
86 // Also generates errors on wx on Windows, presumably because these functions
87 // are used from wx headers.
88 #if !PLATFORM(QT) && !PLATFORM(WX)
89 #include <wtf/DisallowCType.h>
93 #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1
95 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1
99 #define WTF_PLATFORM_CG 1
100 #undef WTF_PLATFORM_CAIRO
101 #define WTF_USE_CFNETWORK 1
102 #undef WTF_USE_WININET
103 #define WTF_PLATFORM_CF 1
104 #define WTF_USE_PTHREADS 0
108 #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
109 #define WTF_USE_ATSUI 0
110 #define WTF_USE_CORE_TEXT 1
112 #define WTF_USE_ATSUI 1
113 #define WTF_USE_CORE_TEXT 0
115 #define WTF_USE_NEW_THEME 1
118 #if PLATFORM(SYMBIAN)
121 #undef SKIP_STATIC_CONSTRUCTORS_ON_GCC
122 #define USE_SYSTEM_MALLOC 1
123 #define U_HAVE_INT8_T 0
124 #define U_HAVE_INT16_T 0
125 #define U_HAVE_INT32_T 0
126 #define U_HAVE_INT64_T 0
127 #define U_HAVE_INTTYPES_H 0
130 #include <snprintf.h>
132 #include <wtf/MathExtras.h>
135 #if !defined(WTF_USE_V8)
136 /* Currently Chromium is the only platform which uses V8 by default */
137 #if PLATFORM(CHROMIUM)
141 #endif /* PLATFORM(CHROMIUM) */
142 #endif /* !defined(WTF_USE_V8) */
144 /* Using V8 implies not using JSC and vice versa */
145 #define WTF_USE_JSC !WTF_USE_V8
148 #ifndef CGFLOAT_DEFINED
150 typedef double CGFloat
;
152 typedef float CGFloat
;
154 #define CGFLOAT_DEFINED 1
156 #endif /* PLATFORM(CG) */
158 #ifdef BUILDING_ON_TIGER
160 #define ENABLE_FTPDIR 0
163 #if PLATFORM(WIN) && PLATFORM(CG)
164 #define WTF_USE_SAFARI_THEME 1