| OLD | NEW |
| 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. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 "wtf/Compiler.h" |
| 29 | 29 |
| 30 /* ==== Platform adaptation macros: these describe properties of the target envi
ronment. ==== */ | 30 /* ==== Platform adaptation macros: these describe properties of the target envi
ronment. ==== */ |
| 31 | 31 |
| 32 /* HAVE() - specific system features (headers, functions or similar) that are pr
esent or not */ | 32 /* HAVE() - specific system features (headers, functions or similar) that are pr
esent or not */ |
| 33 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) | 33 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) |
| 34 /* OS() - underlying operating system; only to be used for mandated low-level se
rvices like | 34 /* OS() - underlying operating system; only to be used for mandated low-level se
rvices like |
| 35 virtual memory, not to choose a GUI toolkit */ | 35 virtual memory, not to choose a GUI toolkit */ |
| 36 #define OS(WTF_FEATURE) (defined OS_##WTF_FEATURE && OS_##WTF_FEATURE) | 36 #define OS(WTF_FEATURE) (defined OS_##WTF_FEATURE && OS_##WTF_FEATURE) |
| 37 | 37 |
| 38 /* ==== Policy decision macros: these define policy choices for a particular por
t. ==== */ | 38 /* ==== Policy decision macros: these define policy choices for a particular por
t. ==== */ |
| 39 | 39 |
| 40 /* USE() - use a particular third-party library or optional OS service */ | 40 /* USE() - use a particular third-party library or optional OS service */ |
| 41 #define USE(WTF_FEATURE) (defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATUR
E) | 41 #define USE(WTF_FEATURE) \ |
| 42 (defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATURE) |
| 42 /* ENABLE() - turn on a specific feature of WebKit */ | 43 /* ENABLE() - turn on a specific feature of WebKit */ |
| 43 #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATU
RE) | 44 #define ENABLE(WTF_FEATURE) \ |
| 45 (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE) |
| 44 | 46 |
| 45 /* There is an assumption in the project that either OS(WIN) or OS(POSIX) is set
. */ | 47 /* There is an assumption in the project that either OS(WIN) or OS(POSIX) is set
. */ |
| 46 #if !OS(WIN) && !OS(POSIX) | 48 #if !OS(WIN) && !OS(POSIX) |
| 47 #error Either OS(WIN) or OS(POSIX) needs to be set. | 49 #error Either OS(WIN) or OS(POSIX) needs to be set. |
| 48 #endif | 50 #endif |
| 49 | 51 |
| 50 #endif // WTF_build_config_h | 52 #endif // WTF_build_config_h |
| OLD | NEW |