| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #ifndef WTF_Platform_h | 28 #ifndef WTF_Platform_h |
| 29 #define WTF_Platform_h | 29 #define WTF_Platform_h |
| 30 | 30 |
| 31 /* Include compiler specific macros */ | 31 /* Include compiler specific macros */ |
| 32 #include "wtf/Compiler.h" | 32 #include "wtf/Compiler.h" |
| 33 | 33 |
| 34 /* ==== Platform adaptation macros: these describe properties of the target envi
ronment. ==== */ | 34 /* ==== Platform adaptation macros: these describe properties of the target envi
ronment. ==== */ |
| 35 | 35 |
| 36 /* HAVE() - specific system features (headers, functions or similar) that are pr
esent or not */ | 36 /* HAVE() - specific system features (headers, functions or similar) that are pr
esent or not */ |
| 37 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) | 37 #define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE) |
| 38 /* OS() - underlying operating system; only to be used for mandated low-level se
rvices like | 38 /* OS() - underlying operating system; only to be used for mandated low-level se
rvices like |
| 39 virtual memory, not to choose a GUI toolkit */ | 39 virtual memory, not to choose a GUI toolkit */ |
| 40 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE) | 40 #define OS(WTF_FEATURE) (defined WTF_OS_##WTF_FEATURE && WTF_OS_##WTF_FEATURE) |
| 41 | 41 |
| 42 /* ==== Policy decision macros: these define policy choices for a particular por
t. ==== */ | 42 /* ==== Policy decision macros: these define policy choices for a particular por
t. ==== */ |
| 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) (defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATUR
E) | 45 #define USE(WTF_FEATURE) (defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATUR
E) |
| 46 /* ENABLE() - turn on a specific feature of WebKit */ | 46 /* ENABLE() - turn on a specific feature of WebKit */ |
| 47 #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATU
RE) | 47 #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATU
RE) |
| 48 | 48 |
| 49 /* ==== OS() - underlying operating system; only to be used for mandated low-lev
el services like | 49 /* ==== OS() - underlying operating system; only to be used for mandated low-lev
el services like |
| 50 virtual memory, not to choose a GUI toolkit ==== */ | 50 virtual memory, not to choose a GUI toolkit ==== */ |
| 51 | 51 |
| 52 /* OS(ANDROID) - Android */ | 52 /* OS(ANDROID) - Android */ |
| 53 #ifdef ANDROID | 53 #ifdef ANDROID |
| 54 #define WTF_OS_ANDROID 1 | 54 #define WTF_OS_ANDROID 1 |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 /* OS(DARWIN) - Any Darwin-based OS, including Mac OS X and iPhone OS */ | 57 /* OS(DARWIN) - Any Darwin-based OS, including Mac OS X and iPhone OS */ |
| 58 #ifdef __APPLE__ | 58 #ifdef __APPLE__ |
| 59 #define WTF_OS_DARWIN 1 | 59 #define WTF_OS_DARWIN 1 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 * no need to use WebKit's copy of TCMalloc. */ | 130 * no need to use WebKit's copy of TCMalloc. */ |
| 131 #define WTF_USE_SYSTEM_MALLOC 1 | 131 #define WTF_USE_SYSTEM_MALLOC 1 |
| 132 #endif /* OS(DARWIN) */ | 132 #endif /* OS(DARWIN) */ |
| 133 | 133 |
| 134 #if !defined(HAVE_ACCESSIBILITY) | 134 #if !defined(HAVE_ACCESSIBILITY) |
| 135 #define HAVE_ACCESSIBILITY 1 | 135 #define HAVE_ACCESSIBILITY 1 |
| 136 #endif /* !defined(HAVE_ACCESSIBILITY) */ | 136 #endif /* !defined(HAVE_ACCESSIBILITY) */ |
| 137 | 137 |
| 138 #if OS(UNIX) | 138 #if OS(UNIX) |
| 139 #define HAVE_ERRNO_H 1 | 139 #define HAVE_ERRNO_H 1 |
| 140 #define HAVE_MMAP 1 | 140 #define HAVE_MMAP 1 |
| 141 #define HAVE_SIGNAL_H 1 | 141 #define HAVE_SIGNAL_H 1 |
| 142 #define HAVE_STRINGS_H 1 | 142 #define HAVE_STRINGS_H 1 |
| 143 #define HAVE_SYS_TIME_H 1 | 143 #define HAVE_SYS_TIME_H 1 |
| 144 #define WTF_USE_PTHREADS 1 | 144 #define WTF_USE_PTHREADS 1 |
| 145 #endif /* OS(UNIX) */ | 145 #endif /* OS(UNIX) */ |
| 146 | 146 |
| 147 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) | 147 #if (OS(FREEBSD) || OS(OPENBSD)) && !defined(__GLIBC__) |
| 148 #define HAVE_PTHREAD_NP_H 1 | 148 #define HAVE_PTHREAD_NP_H 1 |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 #if !defined(HAVE_VASPRINTF) | 151 #if !defined(HAVE_VASPRINTF) |
| 152 #if !COMPILER(MSVC) | 152 #if !COMPILER(MSVC) |
| 153 #define HAVE_VASPRINTF 1 | 153 #define HAVE_VASPRINTF 1 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 175 #endif /* OS(DARWIN) */ | 175 #endif /* OS(DARWIN) */ |
| 176 | 176 |
| 177 #if OS(WINDOWS) | 177 #if OS(WINDOWS) |
| 178 #define HAVE_SYS_TIMEB_H 1 | 178 #define HAVE_SYS_TIMEB_H 1 |
| 179 #define HAVE_ALIGNED_MALLOC 1 | 179 #define HAVE_ALIGNED_MALLOC 1 |
| 180 #define HAVE_ISDEBUGGERPRESENT 1 | 180 #define HAVE_ISDEBUGGERPRESENT 1 |
| 181 #define HAVE_VIRTUALALLOC 1 | 181 #define HAVE_VIRTUALALLOC 1 |
| 182 #endif | 182 #endif |
| 183 | 183 |
| 184 #endif /* WTF_Platform_h */ | 184 #endif /* WTF_Platform_h */ |
| OLD | NEW |