~ubuntu-branches/ubuntu/maverick/webkit/maverick

« back to all changes in this revision

Viewing changes to JavaScriptCore/kjs/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2007-08-19 15:54:12 UTC
  • Revision ID: james.westby@ubuntu.com-20070819155412-uxxg1h9plpghmtbi
Tags: upstream-0~svn25144
ImportĀ upstreamĀ versionĀ 0~svn25144

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2006 Apple Computer, Inc.
 
3
 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
 
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(MAC)
 
25
#define HAVE_JNI 1
 
26
#endif
 
27
 
 
28
#if PLATFORM(DARWIN)
 
29
 
 
30
#define HAVE_ERRNO_H 1
 
31
#define HAVE_FUNC_ISINF 1
 
32
#define HAVE_FUNC_ISNAN 1
 
33
#define HAVE_MMAP 1
 
34
#define HAVE_MERGESORT 1
 
35
#define HAVE_SBRK 1
 
36
#define HAVE_STRINGS_H 1
 
37
#define HAVE_SYS_PARAM_H 1
 
38
#define HAVE_SYS_TIME_H 1
 
39
#define HAVE_SYS_TIMEB_H 1
 
40
 
 
41
#elif PLATFORM(WIN_OS)
 
42
 
 
43
// If we don't define these, they get defined in windef.h. 
 
44
// We want to use std::min and std::max
 
45
#define max max
 
46
#define min min
 
47
 
 
48
#define HAVE_FLOAT_H 1
 
49
#define HAVE_FUNC__FINITE 1
 
50
#define HAVE_SYS_TIMEB_H 1
 
51
#define HAVE_VIRTUALALLOC 1
 
52
 
 
53
#else
 
54
 
 
55
/* FIXME: is this actually used or do other platforms generate their own config.h? */
 
56
 
 
57
#define HAVE_ERRNO_H 1
 
58
#define HAVE_FUNC_ISINF 1
 
59
#define HAVE_FUNC_ISNAN 1
 
60
#define HAVE_MMAP 1
 
61
#define HAVE_SBRK 1
 
62
#define HAVE_STRINGS_H 1
 
63
#define HAVE_SYS_PARAM_H 1
 
64
#define HAVE_SYS_TIME_H 1
 
65
 
 
66
#endif
 
67
 
 
68
#define HAVE_PCREPOSIX 1
 
69
 
 
70
/* FIXME: if all platforms have these, do they really need #defines? */
 
71
#define HAVE_STDINT_H 1
 
72
#define HAVE_STRING_H 1
 
73
 
 
74
#define WTF_CHANGES 1
 
75
 
 
76
#ifdef __cplusplus
 
77
#undef new
 
78
#undef delete
 
79
#include <wtf/FastMalloc.h>
 
80
#endif