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

Side by Side Diff: sky/engine/wtf/OperatingSystem.h

Issue 1205793002: Remove config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/engine/wtf/MathExtras.h ('k') | sky/engine/wtf/PassRefPtr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2013 Apple Inc. 2 * Copyright (C) 2004, 2005, 2006, 2013 Apple Inc.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * Copyright (C) 2007-2009 Torch Mobile, Inc. 4 * Copyright (C) 2007-2009 Torch Mobile, Inc.
5 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 * 21 *
22 */ 22 */
23 23
24 /* Include compiler specific macros */ 24 #ifndef SKY_ENGINE_WTF_OPERATING_SYSTEM_H_
25 #include "sky/engine/wtf/Compiler.h" 25 #define SKY_ENGINE_WTF_OPERATING_SYSTEM_H_
26 26
27 /* ==== Platform adaptation macros: these describe properties of the target envi ronment. ==== */ 27 /* ==== Platform adaptation macros: these describe properties of the target envi ronment. ==== */
28 28
29 /* HAVE() - specific system features (headers, functions or similar) that are pr esent or not */ 29 /* HAVE() - specific system features (headers, functions or similar) that are pr esent or not */
30 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) 30 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE)
31 /* OS() - underlying operating system; only to be used for mandated low-level se rvices like 31 /* OS() - underlying operating system; only to be used for mandated low-level se rvices like
32 virtual memory, not to choose a GUI toolkit */ 32 virtual memory, not to choose a GUI toolkit */
33 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE) 33 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE)
34 34
35 /* ==== Policy decision macros: these define policy choices for a particular por t. ==== */ 35 /* ==== Policy decision macros: these define policy choices for a particular por t. ==== */
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #define WTF_USE_ICCJPEG 1 73 #define WTF_USE_ICCJPEG 1
74 #define WTF_USE_QCMSLIB 1 74 #define WTF_USE_QCMSLIB 1
75 #endif 75 #endif
76 76
77 #if OS(POSIX) 77 #if OS(POSIX)
78 #define HAVE_SIGNAL_H 1 78 #define HAVE_SIGNAL_H 1
79 #define HAVE_SYS_TIME_H 1 79 #define HAVE_SYS_TIME_H 1
80 #define WTF_USE_PTHREADS 1 80 #define WTF_USE_PTHREADS 1
81 #endif 81 #endif
82 82
83 #if !OS(ANDROID) 83 #endif // SKY_ENGINE_WTF_OPERATING_SYSTEM_H_
84 #define HAVE_TM_GMTOFF 1
85 #define HAVE_TM_ZONE 1
86 #define HAVE_TIMEGM 1
87 #endif
88
89 #ifdef __cplusplus
90
91 // Helps us catch if anyone uses new or delete by accident in code and doesn't i nclude "config.h".
92 #undef new
93 #undef delete
94 #include <ciso646>
95 #include <cstddef>
96
97 #endif
OLDNEW
« no previous file with comments | « sky/engine/wtf/MathExtras.h ('k') | sky/engine/wtf/PassRefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698