OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
12 * | 12 * |
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' | 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H | 26 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H |
Nico
2013/04/21 01:26:42
(we don't use autotools either)
| |
27 #ifdef BUILDING_WITH_CMAKE | |
28 #include "cmakeconfig.h" | |
29 #else | |
30 #include "autotoolsconfig.h" | 27 #include "autotoolsconfig.h" |
31 #endif | 28 #endif |
32 #endif | |
33 | 29 |
34 #include <wtf/Platform.h> | 30 #include <wtf/Platform.h> |
35 #include <wtf/ExportMacros.h> | 31 #include <wtf/ExportMacros.h> |
36 #if USE(JSC) | 32 #if USE(JSC) |
37 #include <runtime/JSExportMacros.h> | 33 #include <runtime/JSExportMacros.h> |
38 #endif | 34 #endif |
39 | 35 |
40 #if defined(__APPLE__) && __APPLE__ | 36 #if defined(__APPLE__) && __APPLE__ |
41 | 37 |
42 #ifdef __OBJC__ | 38 #ifdef __OBJC__ |
43 #if PLATFORM(IOS) | |
44 #import <Foundation/Foundation.h> | |
45 #else | |
46 #import <Cocoa/Cocoa.h> | 39 #import <Cocoa/Cocoa.h> |
47 #endif | 40 #endif |
48 #endif | |
49 | 41 |
50 #elif defined(WIN32) || defined(_WIN32) | 42 #elif defined(WIN32) || defined(_WIN32) |
51 | 43 |
52 #ifndef NOMINMAX | 44 #ifndef NOMINMAX |
53 #define NOMINMAX | 45 #define NOMINMAX |
54 #endif | 46 #endif |
55 | 47 |
56 #endif | 48 #endif |
57 | 49 |
58 #include <stdint.h> | 50 #include <stdint.h> |
59 | 51 |
60 #if !PLATFORM(IOS) && ((!PLATFORM(CHROMIUM) && !PLATFORM(WIN)) || (PLATFORM(GTK) && defined(BUILDING_WEBKIT2__))) | |
61 #include <WebKit2/WebKit2_C.h> | |
62 #endif | |
63 | |
64 #ifdef __clang__ | 52 #ifdef __clang__ |
65 // Work around the less strict coding standards of the gtest framework. | 53 // Work around the less strict coding standards of the gtest framework. |
66 #pragma clang diagnostic push | 54 #pragma clang diagnostic push |
67 #pragma clang diagnostic ignored "-Wunused-variable" | 55 #pragma clang diagnostic ignored "-Wunused-variable" |
68 #endif | 56 #endif |
69 | 57 |
70 #ifdef __cplusplus | 58 #ifdef __cplusplus |
71 #include <gtest/gtest.h> | 59 #include <gtest/gtest.h> |
72 #endif | 60 #endif |
73 | 61 |
74 #ifdef __clang__ | 62 #ifdef __clang__ |
75 // Finish working around the less strict coding standards of the gtest framework . | 63 // Finish working around the less strict coding standards of the gtest framework . |
76 #pragma clang diagnostic pop | 64 #pragma clang diagnostic pop |
77 #endif | 65 #endif |
78 | 66 |
79 #if PLATFORM(MAC) && defined(__OBJC__) | |
80 #import <WebKit/WebKit.h> | |
81 #endif | |
OLD | NEW |