2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
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.
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.
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
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
22 #include <wtf/Platform.h>
24 #define XSLT_SUPPORT 1
28 #define HAVE_FUNC_USLEEP 1
30 #ifndef CGFLOAT_DEFINED
32 typedef double CGFloat;
34 typedef float CGFloat;
36 #define CGFLOAT_DEFINED 1
39 #endif /* __APPLE__ */
45 #define _WIN32_WINNT 0x0500
52 // If we don't define these, they get defined in windef.h.
53 // We want to use std::min and std::max
57 // Hack to match configuration of JavaScriptCore.
58 // Maybe there's a better way to do this.
59 #define USE_SYSTEM_MALLOC 1
61 // FIXME: Should probably just dump this eventually, but it's needed for now.
62 // We get this from some system place on OS X; probably better not to use it
66 #endif /* PLATFORM(WIN_OS) */
68 #if !PLATFORM(SYMBIAN)
75 // These undefs match up with defines in WebCorePrefix.h for Mac OS X.
76 // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
79 #include <wtf/FastMalloc.h>
83 #if !COMPILER(MSVC) // can't get this to compile on Visual C++ yet
84 #define AVOID_STATIC_CONSTRUCTORS 1
88 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
89 #define WTF_USE_NPOBJECT 1
93 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
94 #define WTF_USE_NPOBJECT 1
98 #undef AVOID_STATIC_CONSTRUCTORS
99 #define USE_SYSTEM_MALLOC 1
100 #define U_HAVE_INT8_T 0
101 #define U_HAVE_INT16_T 0
102 #define U_HAVE_INT32_T 0
103 #define U_HAVE_INT64_T 0
104 #define U_HAVE_INTTYPES_H 0
107 #include <snprintf.h>
109 #include <wtf/MathExtras.h>