2 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #include <wtf/Platform.h>
23 #define XSLT_SUPPORT 1
26 #define HAVE_FUNC_USLEEP 1
28 #ifndef CGFLOAT_DEFINED
30 typedef double CGFloat;
32 typedef float CGFloat;
34 #define CGFLOAT_DEFINED 1
37 #endif /* __APPLE__ */
43 #define _WIN32_WINNT 0x0500
50 // Hack to match configuration of JavaScriptCore.
51 // Maybe there's a better way to do this.
52 #define USE_SYSTEM_MALLOC 1
54 // FIXME: Should probably just dump this eventually, but it's needed for now.
55 // We get this from some system place on OS X; probably better not to use it
59 #endif /* PLATFORM(WIN_OS) */
64 // These undefs match up with defines in WebCorePrefix.h for Mac OS X.
65 // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
68 #include <wtf/FastMalloc.h>
72 #if !COMPILER(MSVC) // can't get this to compile on Visual C++ yet
73 #define AVOID_STATIC_CONSTRUCTORS 1
77 #define KXMLCORE_USE_JAVASCRIPTCORE_BINDINGS 1
78 #define KXMLCORE_USE_NPOBJECT 1