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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/build_config.h

Issue 2748083005: Move files in wtf/ to platform/wtf/ (Part 1). (Closed)
Patch Set: Created 3 years, 9 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
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 #ifndef WTF_build_config_h 24 #ifndef WTF_build_config_h
25 #define WTF_build_config_h 25 #define WTF_build_config_h
26 26
27 #include "build/build_config.h" 27 #include "build/build_config.h"
28 #include "wtf/Compiler.h" 28 #include "platform/wtf/Compiler.h"
29 29
30 /* ==== Platform adaptation macros: these describe properties of the target 30 /* ==== Platform adaptation macros: these describe properties of the target
31 * environment. ==== */ 31 * environment. ==== */
32 32
33 /* HAVE() - specific system features (headers, functions or similar) that are 33 /* HAVE() - specific system features (headers, functions or similar) that are
34 * present or not */ 34 * present or not */
35 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) 35 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE)
36 /* OS() - underlying operating system; only to be used for mandated low-level 36 /* OS() - underlying operating system; only to be used for mandated low-level
37 services like 37 services like
38 virtual memory, not to choose a GUI toolkit */ 38 virtual memory, not to choose a GUI toolkit */
39 #define OS(WTF_FEATURE) (defined OS_##WTF_FEATURE && OS_##WTF_FEATURE) 39 #define OS(WTF_FEATURE) (defined OS_##WTF_FEATURE && OS_##WTF_FEATURE)
40 40
41 /* ==== Policy decision macros: these define policy choices for a particular 41 /* ==== Policy decision macros: these define policy choices for a particular
42 * port. ==== */ 42 * port. ==== */
43 43
44 /* USE() - use a particular third-party library or optional OS service */ 44 /* USE() - use a particular third-party library or optional OS service */
45 #define USE(WTF_FEATURE) \ 45 #define USE(WTF_FEATURE) \
46 (defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATURE) 46 (defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATURE)
47 /* ENABLE() - turn on a specific feature of WebKit */ 47 /* ENABLE() - turn on a specific feature of WebKit */
48 #define ENABLE(WTF_FEATURE) \ 48 #define ENABLE(WTF_FEATURE) \
49 (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE) 49 (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE)
50 50
51 /* There is an assumption in the project that either OS(WIN) or OS(POSIX) is 51 /* There is an assumption in the project that either OS(WIN) or OS(POSIX) is
52 * set. */ 52 * set. */
53 #if !OS(WIN) && !OS(POSIX) 53 #if !OS(WIN) && !OS(POSIX)
54 #error Either OS(WIN) or OS(POSIX) needs to be set. 54 #error Either OS(WIN) or OS(POSIX) needs to be set.
55 #endif 55 #endif
56 56
57 #endif // WTF_build_config_h 57 #endif // WTF_build_config_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/TypeTraits.h ('k') | third_party/WebKit/Source/wtf/ByteSwap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698