2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
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., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
22 #include <wtf/Platform.h>
26 #define HAVE_ERRNO_H 1
28 #define HAVE_MERGESORT 1
30 #define HAVE_STRINGS_H 1
31 #define HAVE_SYS_PARAM_H 1
32 #define HAVE_SYS_TIME_H 1
33 #define HAVE_SYS_TIMEB_H 1
35 #elif PLATFORM(WIN_OS)
37 // If we don't define these, they get defined in windef.h.
38 // We want to use std::min and std::max
43 // We need to define this before the first #include of stdlib.h or it won't contain rand_s.
49 #define HAVE_FLOAT_H 1
50 #define HAVE_SYS_TIMEB_H 1
51 #define HAVE_VIRTUALALLOC 1
55 /* FIXME: is this actually used or do other platforms generate their own config.h? */
57 #define HAVE_ERRNO_H 1
60 #define HAVE_STRINGS_H 1
61 #define HAVE_SYS_PARAM_H 1
62 #define HAVE_SYS_TIME_H 1
67 #define HAVE_PTHREAD_NP_H 1
70 /* FIXME: if all platforms have these, do they really need #defines? */
71 #define HAVE_STDINT_H 1
72 #define HAVE_STRING_H 1
79 #include <wtf/FastMalloc.h>
82 // this breaks compilation of <QFontDatabase>, at least, so turn it off for now
83 // Also generates errors on wx on Windows, because these functions
84 // are used from wx headers.
85 #if !PLATFORM(QT) && !PLATFORM(WX)
86 #include <wtf/DisallowCType.h>
89 #define JAVASCRIPT_PROFILING 1