darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 1 | /* |
aroben@apple.com | 259fc31 | 2008-01-08 17:43:23 +0000 | [diff] [blame] | 2 | * Copyright (C) 2004, 2005, 2006 Apple Inc. |
eric@webkit.org | 8b2edd0 | 2009-09-09 22:35:57 +0000 | [diff] [blame] | 3 | * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 | * |
darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library 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 GNU |
| 13 | * Library General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Library General Public License |
| 16 | * along with this library; see the file COPYING.LIB. If not, write to |
ddkilzer | c8eccec | 2007-09-26 02:29:57 +0000 | [diff] [blame] | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 | * Boston, MA 02110-1301, USA. |
darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 19 | * |
ossy@webkit.org | 3744186 | 2010-11-10 18:43:50 +0000 | [diff] [blame] | 20 | */ |
darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 21 | |
mrowe@apple.com | 12b7c2d | 2008-09-04 21:00:02 +0000 | [diff] [blame] | 22 | #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H |
eric@webkit.org | d99f85b | 2010-05-15 13:37:59 +0000 | [diff] [blame] | 23 | #ifdef BUILDING_WITH_CMAKE |
| 24 | #include "cmakeconfig.h" |
| 25 | #else |
jmalonzo@webkit.org | 6afc5d4 | 2008-09-04 20:26:16 +0000 | [diff] [blame] | 26 | #include "autotoolsconfig.h" |
| 27 | #endif |
eric@webkit.org | d99f85b | 2010-05-15 13:37:59 +0000 | [diff] [blame] | 28 | #endif |
jmalonzo@webkit.org | 6afc5d4 | 2008-09-04 20:26:16 +0000 | [diff] [blame] | 29 | |
mjs | bb86351 | 2006-05-09 09:27:55 +0000 | [diff] [blame] | 30 | #include <wtf/Platform.h> |
mjs | 3bfb61b | 2006-03-02 09:12:06 +0000 | [diff] [blame] | 31 | |
kevino@webkit.org | 531cac3 | 2011-03-15 14:59:20 +0000 | [diff] [blame] | 32 | /* See note in wtf/Platform.h for more info on EXPORT_MACROS. */ |
| 33 | #if USE(EXPORT_MACROS) |
| 34 | |
| 35 | #include <wtf/ExportMacros.h> |
| 36 | |
| 37 | #if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF) |
| 38 | #define WTF_EXPORT_PRIVATE WTF_EXPORT |
| 39 | #define JS_EXPORT_PRIVATE WTF_EXPORT |
| 40 | #else |
| 41 | #define WTF_EXPORT_PRIVATE WTF_IMPORT |
| 42 | #define JS_EXPORT_PRIVATE WTF_IMPORT |
| 43 | #endif |
| 44 | |
| 45 | #define JS_EXPORTDATA JS_EXPORT_PRIVATE |
| 46 | #define JS_EXPORTCLASS JS_EXPORT_PRIVATE |
| 47 | |
| 48 | #if defined(BUILDING_WebCore) || defined(BUILDING_WebKit) |
| 49 | #define WEBKIT_EXPORTDATA WTF_EXPORT |
| 50 | #else |
| 51 | #define WEBKIT_EXPORTDATA WTF_IMPORT |
| 52 | #endif |
| 53 | |
| 54 | #else /* !USE(EXPORT_MACROS) */ |
| 55 | |
jamesr@google.com | aefdd9a | 2010-04-23 21:13:32 +0000 | [diff] [blame] | 56 | #if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC) |
sfalken@apple.com | 46fc85a | 2009-04-20 21:25:37 +0000 | [diff] [blame] | 57 | #if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF) |
| 58 | #define JS_EXPORTDATA __declspec(dllexport) |
| 59 | #else |
| 60 | #define JS_EXPORTDATA __declspec(dllimport) |
| 61 | #endif |
| 62 | #if defined(BUILDING_WebCore) || defined(BUILDING_WebKit) |
| 63 | #define WEBKIT_EXPORTDATA __declspec(dllexport) |
| 64 | #else |
| 65 | #define WEBKIT_EXPORTDATA __declspec(dllimport) |
| 66 | #endif |
kevino@webkit.org | 694dcd9 | 2011-04-06 23:38:42 +0000 | [diff] [blame] | 67 | #define WTF_EXPORT_PRIVATE |
| 68 | #define JS_EXPORT_PRIVATE |
ap@apple.com | 1348bdf | 2010-01-08 00:15:05 +0000 | [diff] [blame] | 69 | #define JS_EXPORTCLASS JS_EXPORTDATA |
sfalken@apple.com | 46fc85a | 2009-04-20 21:25:37 +0000 | [diff] [blame] | 70 | #else |
| 71 | #define JS_EXPORTDATA |
ap@apple.com | 1348bdf | 2010-01-08 00:15:05 +0000 | [diff] [blame] | 72 | #define JS_EXPORTCLASS |
sfalken@apple.com | bcff7fb | 2009-04-20 21:47:02 +0000 | [diff] [blame] | 73 | #define WEBKIT_EXPORTDATA |
kevino@webkit.org | 531cac3 | 2011-03-15 14:59:20 +0000 | [diff] [blame] | 74 | #define WTF_EXPORT_PRIVATE |
| 75 | #define JS_EXPORT_PRIVATE |
sfalken@apple.com | 46fc85a | 2009-04-20 21:25:37 +0000 | [diff] [blame] | 76 | #endif |
| 77 | |
kevino@webkit.org | 531cac3 | 2011-03-15 14:59:20 +0000 | [diff] [blame] | 78 | #endif /* USE(EXPORT_MACROS) */ |
| 79 | |
mrowe@apple.com | 4d7e81e | 2007-11-20 16:06:23 +0000 | [diff] [blame] | 80 | #ifdef __APPLE__ |
darin | 71e2749 | 2006-01-25 03:35:00 +0000 | [diff] [blame] | 81 | #define HAVE_FUNC_USLEEP 1 |
weinig | f18aae3 | 2006-08-03 21:55:57 +0000 | [diff] [blame] | 82 | #endif /* __APPLE__ */ |
darin | 71e2749 | 2006-01-25 03:35:00 +0000 | [diff] [blame] | 83 | |
mjs@apple.com | acbcc28 | 2010-01-05 08:58:28 +0000 | [diff] [blame] | 84 | #if OS(WINDOWS) |
darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 85 | |
sfalken | c3cff1c | 2006-05-26 00:36:30 +0000 | [diff] [blame] | 86 | #ifndef _WIN32_WINNT |
hyatt | 89166da | 2006-05-21 06:58:12 +0000 | [diff] [blame] | 87 | #define _WIN32_WINNT 0x0500 |
sfalken | c3cff1c | 2006-05-26 00:36:30 +0000 | [diff] [blame] | 88 | #endif |
| 89 | |
| 90 | #ifndef WINVER |
| 91 | #define WINVER 0x0500 |
| 92 | #endif |
| 93 | |
aroben@apple.com | 06d35b9 | 2008-03-27 01:43:54 +0000 | [diff] [blame] | 94 | // If we don't define these, they get defined in windef.h. |
aroben@apple.com | 1840f96 | 2007-11-12 11:02:47 +0000 | [diff] [blame] | 95 | // We want to use std::min and std::max. |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 96 | #ifndef max |
aroben | a6c43b9 | 2006-12-08 22:34:07 +0000 | [diff] [blame] | 97 | #define max max |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 98 | #endif |
| 99 | #ifndef min |
aroben | a6c43b9 | 2006-12-08 22:34:07 +0000 | [diff] [blame] | 100 | #define min min |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 101 | #endif |
| 102 | |
kevino@webkit.org | 79fbef9 | 2007-11-24 00:52:18 +0000 | [diff] [blame] | 103 | // CURL needs winsock, so don't prevent inclusion of it |
bfulgham@webkit.org | 147773f | 2009-06-12 21:36:08 +0000 | [diff] [blame] | 104 | #if !USE(CURL) |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 105 | #ifndef _WINSOCKAPI_ |
| 106 | #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h |
| 107 | #endif |
bfulgham@webkit.org | 147773f | 2009-06-12 21:36:08 +0000 | [diff] [blame] | 108 | #endif |
bdash | db30912 | 2006-11-20 12:59:36 +0000 | [diff] [blame] | 109 | |
mjs@apple.com | acbcc28 | 2010-01-05 08:58:28 +0000 | [diff] [blame] | 110 | #endif /* OS(WINDOWS) */ |
weinig | f18aae3 | 2006-08-03 21:55:57 +0000 | [diff] [blame] | 111 | |
eric@webkit.org | b8ec05a | 2009-11-20 06:03:15 +0000 | [diff] [blame] | 112 | #if PLATFORM(ANDROID) |
commit-queue@webkit.org | 807a3eb | 2010-10-05 15:53:45 +0000 | [diff] [blame] | 113 | // Android uses a single set of include directories when building WebKit and |
| 114 | // JavaScriptCore. Since WebCore/ is included before JavaScriptCore/, Android |
| 115 | // includes JavaScriptCore/config.h explicitly here to make sure it gets picked |
| 116 | // up. |
| 117 | #include <JavaScriptCore/config.h> |
| 118 | |
eric@webkit.org | b8ec05a | 2009-11-20 06:03:15 +0000 | [diff] [blame] | 119 | #define WEBCORE_NAVIGATOR_VENDOR "Google Inc." |
| 120 | // This must be defined before we include FastMalloc.h, below. |
| 121 | #define USE_SYSTEM_MALLOC 1 |
| 122 | #define LOG_DISABLED 1 |
| 123 | #include <wtf/Assertions.h> |
| 124 | // Central place to set which optional features Android uses. |
| 125 | #define ENABLE_CHANNEL_MESSAGING 1 |
| 126 | #define ENABLE_DOM_STORAGE 1 |
| 127 | #undef ENABLE_FTPDIR // Enabled by default in Platform.h |
| 128 | #define ENABLE_FTPDIR 0 |
| 129 | #ifndef ENABLE_SVG |
| 130 | #define ENABLE_SVG 0 |
| 131 | #endif |
| 132 | #define ENABLE_VIDEO 1 |
| 133 | #define ENABLE_WORKERS 1 |
| 134 | #define ENABLE_XBL 0 |
dbates@webkit.org | a8f3d6a | 2010-01-08 06:16:22 +0000 | [diff] [blame] | 135 | #define ENABLE_XHTMLMP 0 |
eric@webkit.org | b8ec05a | 2009-11-20 06:03:15 +0000 | [diff] [blame] | 136 | #define ENABLE_XPATH 0 |
| 137 | #define ENABLE_XSLT 0 |
| 138 | #define ENABLE_ARCHIVE 0 |
| 139 | #define ENABLE_OFFLINE_WEB_APPLICATIONS 1 |
| 140 | #undef ENABLE_GEOLOCATION // Disabled by default in Platform.h |
| 141 | #define ENABLE_GEOLOCATION 1 |
| 142 | #undef ENABLE_INSPECTOR // Enabled by default in Platform.h |
| 143 | #define ENABLE_INSPECTOR 0 |
| 144 | #define ENABLE_EVENT_SOURCE 0 |
| 145 | #endif /* PLATFORM(ANDROID) */ |
| 146 | |
darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 147 | #ifdef __cplusplus |
| 148 | |
| 149 | // These undefs match up with defines in WebCorePrefix.h for Mac OS X. |
| 150 | // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h". |
| 151 | #undef new |
| 152 | #undef delete |
mjs | bb86351 | 2006-05-09 09:27:55 +0000 | [diff] [blame] | 153 | #include <wtf/FastMalloc.h> |
darin | 707988e | 2006-01-16 01:29:54 +0000 | [diff] [blame] | 154 | |
| 155 | #endif |
eseidel | 864b4dd | 2006-02-24 01:11:00 +0000 | [diff] [blame] | 156 | |
kevino@webkit.org | b7dc1ba | 2009-09-07 17:53:09 +0000 | [diff] [blame] | 157 | // On MSW, wx headers need to be included before windows.h is. |
| 158 | // The only way we can always ensure this is if we include wx here. |
| 159 | #if PLATFORM(WX) |
kevino@webkit.org | b7dc1ba | 2009-09-07 17:53:09 +0000 | [diff] [blame] | 160 | #include <wx/defs.h> |
| 161 | #endif |
| 162 | |
kevino | b9b68c9 | 2007-10-28 19:18:04 +0000 | [diff] [blame] | 163 | // this breaks compilation of <QFontDatabase>, at least, so turn it off for now |
| 164 | // Also generates errors on wx on Windows, presumably because these functions |
mrobinson@webkit.org | e0abb38 | 2011-01-12 18:11:44 +0000 | [diff] [blame] | 165 | // are used from wx headers. On GTK+ for Mac many GTK+ files include <libintl.h> |
| 166 | // or <glib/gi18n-lib.h>, which in turn include <xlocale/_ctype.h> which uses |
| 167 | // isacii(). |
| 168 | #if !PLATFORM(QT) && !PLATFORM(WX) && !PLATFORM(CHROMIUM) && !(OS(DARWIN) && PLATFORM(GTK)) |
darin | eb0d86d | 2007-10-16 20:13:24 +0000 | [diff] [blame] | 169 | #include <wtf/DisallowCType.h> |
darin | 84ee482 | 2007-10-16 22:02:41 +0000 | [diff] [blame] | 170 | #endif |
darin | eb0d86d | 2007-10-16 20:13:24 +0000 | [diff] [blame] | 171 | |
mrowe@apple.com | fbe724c | 2008-09-03 23:46:54 +0000 | [diff] [blame] | 172 | #if COMPILER(MSVC) |
| 173 | #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1 |
laszlo.1.gombos@nokia.com | 3c67e74 | 2010-04-05 14:28:27 +0000 | [diff] [blame] | 174 | #elif !COMPILER(WINSCW) |
mrowe@apple.com | fbe724c | 2008-09-03 23:46:54 +0000 | [diff] [blame] | 175 | #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 |
eseidel | 864b4dd | 2006-02-24 01:11:00 +0000 | [diff] [blame] | 176 | #endif |
andersca | cd71fdd | 2006-09-14 01:56:44 +0000 | [diff] [blame] | 177 | |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 178 | #if PLATFORM(WIN) |
bfulgham@webkit.org | 5742b26b | 2009-07-13 18:34:44 +0000 | [diff] [blame] | 179 | #if defined(WIN_CAIRO) |
paroga@webkit.org | f226d9f | 2011-04-17 10:04:48 +0000 | [diff] [blame] | 180 | #undef WTF_USE_CG |
paroga@webkit.org | 411b476 | 2011-04-16 10:37:01 +0000 | [diff] [blame] | 181 | #define WTF_USE_CAIRO 1 |
bfulgham@webkit.org | 5742b26b | 2009-07-13 18:34:44 +0000 | [diff] [blame] | 182 | #define WTF_USE_CURL 1 |
| 183 | #ifndef _WINSOCKAPI_ |
| 184 | #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h |
| 185 | #endif |
paroga@webkit.org | 380e945 | 2010-11-23 00:18:47 +0000 | [diff] [blame] | 186 | #elif !OS(WINCE) |
paroga@webkit.org | f226d9f | 2011-04-17 10:04:48 +0000 | [diff] [blame] | 187 | #define WTF_USE_CG 1 |
paroga@webkit.org | 411b476 | 2011-04-16 10:37:01 +0000 | [diff] [blame] | 188 | #undef WTF_USE_CAIRO |
bfulgham@webkit.org | 5742b26b | 2009-07-13 18:34:44 +0000 | [diff] [blame] | 189 | #undef WTF_USE_CURL |
| 190 | #endif |
andersca | cd71fdd | 2006-09-14 01:56:44 +0000 | [diff] [blame] | 191 | #endif |
bdash | 880df15 | 2006-11-11 02:55:57 +0000 | [diff] [blame] | 192 | |
mitz@apple.com | c0b050b | 2008-09-06 22:39:34 +0000 | [diff] [blame] | 193 | #if PLATFORM(MAC) |
simon.fraser@apple.com | ccf3690 | 2009-03-17 19:24:35 +0000 | [diff] [blame] | 194 | // New theme |
hyatt@apple.com | 084394f | 2008-10-17 21:26:46 +0000 | [diff] [blame] | 195 | #define WTF_USE_NEW_THEME 1 |
simon.fraser@apple.com | ccf3690 | 2009-03-17 19:24:35 +0000 | [diff] [blame] | 196 | #endif // PLATFORM(MAC) |
mitz@apple.com | c0b050b | 2008-09-06 22:39:34 +0000 | [diff] [blame] | 197 | |
mjs@apple.com | acbcc28 | 2010-01-05 08:58:28 +0000 | [diff] [blame] | 198 | #if OS(SYMBIAN) |
bdash | 880df15 | 2006-11-11 02:55:57 +0000 | [diff] [blame] | 199 | #define USE_SYSTEM_MALLOC 1 |
bdash | 880df15 | 2006-11-11 02:55:57 +0000 | [diff] [blame] | 200 | #endif |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 201 | |
abarth@webkit.org | ca9201f | 2011-02-12 21:35:25 +0000 | [diff] [blame] | 202 | #if OS(UNIX) || OS(WINDOWS) |
abarth@webkit.org | ba712d3 | 2011-02-11 08:37:36 +0000 | [diff] [blame] | 203 | #define WTF_USE_OS_RANDOMNESS 1 |
| 204 | #endif |
| 205 | |
eric@webkit.org | 3eefe67 | 2008-09-04 01:32:26 +0000 | [diff] [blame] | 206 | #if PLATFORM(CHROMIUM) |
eric@webkit.org | 8b2edd0 | 2009-09-09 22:35:57 +0000 | [diff] [blame] | 207 | |
eric@webkit.org | 8b2edd0 | 2009-09-09 22:35:57 +0000 | [diff] [blame] | 208 | // Chromium uses this file instead of JavaScriptCore/config.h to compile |
| 209 | // JavaScriptCore/wtf (chromium doesn't compile the rest of JSC). Therefore, |
| 210 | // this define is required. |
| 211 | #define WTF_CHANGES 1 |
| 212 | |
| 213 | #define WTF_USE_GOOGLEURL 1 |
| 214 | |
| 215 | #if !defined(WTF_USE_V8) |
eric@webkit.org | 3eefe67 | 2008-09-04 01:32:26 +0000 | [diff] [blame] | 216 | #define WTF_USE_V8 1 |
eric@webkit.org | 8b2edd0 | 2009-09-09 22:35:57 +0000 | [diff] [blame] | 217 | #endif |
| 218 | |
eric@webkit.org | 3eefe67 | 2008-09-04 01:32:26 +0000 | [diff] [blame] | 219 | #endif /* PLATFORM(CHROMIUM) */ |
eric@webkit.org | 8b2edd0 | 2009-09-09 22:35:57 +0000 | [diff] [blame] | 220 | |
| 221 | #if !defined(WTF_USE_V8) |
| 222 | #define WTF_USE_V8 0 |
eric@webkit.org | 3eefe67 | 2008-09-04 01:32:26 +0000 | [diff] [blame] | 223 | #endif /* !defined(WTF_USE_V8) */ |
| 224 | |
| 225 | /* Using V8 implies not using JSC and vice versa */ |
commit-queue@webkit.org | 909c9d9 | 2010-07-03 03:08:25 +0000 | [diff] [blame] | 226 | #if !defined(WTF_USE_JSC) |
eric@webkit.org | 3eefe67 | 2008-09-04 01:32:26 +0000 | [diff] [blame] | 227 | #define WTF_USE_JSC !WTF_USE_V8 |
commit-queue@webkit.org | 909c9d9 | 2010-07-03 03:08:25 +0000 | [diff] [blame] | 228 | #endif |
eric@webkit.org | 3eefe67 | 2008-09-04 01:32:26 +0000 | [diff] [blame] | 229 | |
paroga@webkit.org | f226d9f | 2011-04-17 10:04:48 +0000 | [diff] [blame] | 230 | #if USE(CG) |
aroben | fee2e82 | 2007-06-12 21:50:34 +0000 | [diff] [blame] | 231 | #ifndef CGFLOAT_DEFINED |
| 232 | #ifdef __LP64__ |
| 233 | typedef double CGFloat; |
| 234 | #else |
| 235 | typedef float CGFloat; |
| 236 | #endif |
| 237 | #define CGFLOAT_DEFINED 1 |
| 238 | #endif |
paroga@webkit.org | f226d9f | 2011-04-17 10:04:48 +0000 | [diff] [blame] | 239 | #endif /* USE(CG) */ |
aroben | 808a002 | 2007-06-27 04:07:35 +0000 | [diff] [blame] | 240 | |
beidson | 7a24328 | 2007-07-14 22:25:31 +0000 | [diff] [blame] | 241 | #ifdef BUILDING_ON_TIGER |
weinig | 951fc8d | 2007-07-14 22:59:57 +0000 | [diff] [blame] | 242 | #undef ENABLE_FTPDIR |
beidson | 7a24328 | 2007-07-14 22:25:31 +0000 | [diff] [blame] | 243 | #define ENABLE_FTPDIR 0 |
| 244 | #endif |
mrowe@apple.com | 02a1002 | 2008-03-05 22:44:12 +0000 | [diff] [blame] | 245 | |
paroga@webkit.org | f226d9f | 2011-04-17 10:04:48 +0000 | [diff] [blame] | 246 | #if PLATFORM(WIN) && USE(CG) |
mrowe@apple.com | 02a1002 | 2008-03-05 22:44:12 +0000 | [diff] [blame] | 247 | #define WTF_USE_SAFARI_THEME 1 |
| 248 | #endif |
tonikitoo@webkit.org | 81c027d | 2010-07-29 13:19:43 +0000 | [diff] [blame] | 249 | |
cmarrin@apple.com | 14a3dcf | 2011-01-07 20:00:22 +0000 | [diff] [blame] | 250 | // CoreAnimation is available to IOS, Mac and Windows if using CG |
paroga@webkit.org | f226d9f | 2011-04-17 10:04:48 +0000 | [diff] [blame] | 251 | #if PLATFORM(MAC) || PLATFORM(IOS) || (PLATFORM(WIN) && USE(CG)) |
paroga@webkit.org | e0e0b03 | 2011-04-17 18:59:57 +0000 | [diff] [blame^] | 252 | #define WTF_USE_CA 1 |
cmarrin@apple.com | 14a3dcf | 2011-01-07 20:00:22 +0000 | [diff] [blame] | 253 | #endif |
| 254 | |
hausmann@webkit.org | fc184bd | 2010-09-12 13:33:34 +0000 | [diff] [blame] | 255 | #if PLATFORM(QT) && USE(V8) && defined(Q_WS_X11) |
| 256 | /* protect ourselves from evil X11 defines */ |
| 257 | #include <bridge/npruntime_internal.h> |
| 258 | #endif |
| 259 | |