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
27 #define HAVE_FUNC_USLEEP 1
29 #ifndef CGFLOAT_DEFINED
31 typedef double CGFloat;
33 typedef float CGFloat;
35 #define CGFLOAT_DEFINED 1
38 #endif /* __APPLE__ */
44 #define _WIN32_WINNT 0x0500
51 // Hack to match configuration of JavaScriptCore.
52 // Maybe there's a better way to do this.
53 #define USE_SYSTEM_MALLOC 1
55 // FIXME: Should probably just dump this eventually, but it's needed for now.
56 // We get this from some system place on OS X; probably better not to use it
60 #endif /* PLATFORM(WIN_OS) */
65 // These undefs match up with defines in WebCorePrefix.h for Mac OS X.
66 // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
69 #include <wtf/FastMalloc.h>
73 #if !COMPILER(MSVC) // can't get this to compile on Visual C++ yet
74 #define AVOID_STATIC_CONSTRUCTORS 1
78 #define KXMLCORE_USE_JAVASCRIPTCORE_BINDINGS 1
79 #define KXMLCORE_USE_NPOBJECT 1