source: webkit/trunk/JavaScriptCore/kjs/config.h@ 18087

Last change on this file since 18087 was 18087, checked in by aroben, 18 years ago

JavaScriptCore:

Reviewed by Anders.

This is a mo' better fix for ensuring we don't use macro definitiones
of min/max.

  • kjs/config.h:
  • wtf/Vector.h:

WebCore:

Reviewed by Anders.

This is a mo' better fix for ensuring we don't use macro definitiones
of min/max.

  • config.h:
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/*
2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2006 Samuel Weinig <[email protected]>
4 *
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
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 */
21
22#include <wtf/Platform.h>
23
24#if PLATFORM(DARWIN)
25
26#define HAVE_ERRNO_H 1
27#define HAVE_FUNC_ISINF 1
28#define HAVE_FUNC_ISNAN 1
29#define HAVE_MMAP 1
30#define HAVE_SBRK 1
31#define HAVE_STRINGS_H 1
32#define HAVE_SYS_PARAM_H 1
33#define HAVE_SYS_TIME_H 1
34#define HAVE_SYS_TIMEB_H 1
35
36#elif PLATFORM(WIN_OS)
37
38// If we don't define these, they get defined in windef.h.
39// We want to use std::min and std::max
40#define max max
41#define min min
42
43#define HAVE_FLOAT_H 1
44#define HAVE_FUNC__FINITE 1
45#define HAVE_SYS_TIMEB_H 1
46
47
48#define USE_SYSTEM_MALLOC 1
49
50#else
51
52/* FIXME: is this actually used or do other platforms generate their own config.h? */
53
54#define HAVE_ERRNO_H 1
55#define HAVE_FUNC_ISINF 1
56#define HAVE_FUNC_ISNAN 1
57#define HAVE_MMAP 1
58#define HAVE_SBRK 1
59#define HAVE_STRINGS_H 1
60#define HAVE_SYS_PARAM_H 1
61#define HAVE_SYS_TIME_H 1
62
63#endif
64
65#define HAVE_PCREPOSIX 1
66
67/* FIXME: if all platforms have these, do they really need #defines? */
68#define HAVE_STDINT_H 1
69#define HAVE_STRING_H 1
70
71#define WTF_CHANGES 1
72
73#ifdef __cplusplus
74#undef new
75#undef delete
76#include <wtf/FastMalloc.h>
77#endif
Note: See TracBrowser for help on using the repository browser.