Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: Source/core/WebCorePrefixMac.h

Issue 360353002: Move core/WebCorePrefixMac.h to build/mac/Prefix.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix gn build Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/BUILD.gn ('k') | Source/core/core.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2013 Apple Inc.
3 *
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.
8 *
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.
13 *
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., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 */
20
21 /* This prefix file is for use on Mac OS X only. This prefix file should contain only:
22 * 1) files to precompile for faster builds
23 * 2) in one case at least: OS-X-specific performance bug workarounds
24 * 3) the special trick to catch us using new or delete without including "co nfig.h"
25 * The project should be able to build without this header, although we rarely t est that.
26 */
27
28 /* Things that need to be defined globally should go into "config.h". */
29
30 #ifdef __cplusplus
31 #define NULL __null
32 #else
33 #define NULL ((void *)0)
34 #endif
35
36 #include <pthread.h>
37 #include <sys/types.h>
38 #include <fcntl.h>
39 #include <regex.h>
40 #include <setjmp.h>
41 #include <signal.h>
42 #include <stdarg.h>
43 #include <stddef.h>
44 #include <stdio.h>
45 #include <stdlib.h>
46 #include <string.h>
47 #include <time.h>
48 #include <unistd.h>
49
50 #ifdef __cplusplus
51 #include <ciso646>
52
53 #if defined(_LIBCPP_VERSION)
54
55 // Add work around for a bug in libc++ that caused standard heap
56 // APIs to not compile <rdar://problem/10858112>.
57
58 #include <type_traits>
59
60 namespace WebCore {
61 class TimerHeapReference;
62 }
63
64 _LIBCPP_BEGIN_NAMESPACE_STD
65
66 inline _LIBCPP_INLINE_VISIBILITY
67 const WebCore::TimerHeapReference& move(const WebCore::TimerHeapReference& t)
68 {
69 return t;
70 }
71
72 _LIBCPP_END_NAMESPACE_STD
73
74 #endif // defined(_LIBCPP_VERSION)
75
76 #include <algorithm>
77 #include <cstddef>
78 #include <new>
79
80 #endif // __cplusplus
81
82 #include <sys/param.h>
83 #include <sys/stat.h>
84 #include <sys/time.h>
85 #include <sys/resource.h>
86 #include <CoreFoundation/CoreFoundation.h>
87 #include <CoreServices/CoreServices.h>
88
89 #ifdef __OBJC__
90 #import <Cocoa/Cocoa.h>
91 #endif
92
93 #ifdef __cplusplus
94 #define new ("if you use new/delete make sure to include config.h at the top of the file"())
95 #define delete ("if you use new/delete make sure to include config.h at the top of the file"())
96 #endif
97
98 /* When C++ exceptions are disabled, the C++ library defines |try| and |catch|
99 * to allow C++ code that expects exceptions to build. These definitions
100 * interfere with Objective-C++ uses of Objective-C exception handlers, which
101 * use |@try| and |@catch|. As a workaround, undefine these macros. */
102 #ifdef __OBJC__
103 #undef try
104 #undef catch
105 #endif
OLDNEW
« no previous file with comments | « Source/core/BUILD.gn ('k') | Source/core/core.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698