| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATU
RE) | 44 #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATU
RE) |
| 45 | 45 |
| 46 /* ==== OS() - underlying operating system; only to be used for mandated low-lev
el services like | 46 /* ==== OS() - underlying operating system; only to be used for mandated low-lev
el services like |
| 47 virtual memory, not to choose a GUI toolkit ==== */ | 47 virtual memory, not to choose a GUI toolkit ==== */ |
| 48 | 48 |
| 49 /* OS(ANDROID) - Android */ | 49 /* OS(ANDROID) - Android */ |
| 50 #ifdef ANDROID | 50 #ifdef ANDROID |
| 51 #define WTF_OS_ANDROID 1 | 51 #define WTF_OS_ANDROID 1 |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 /* OS(DARWIN) - Any Darwin-based OS, including Mac OS X and iPhone OS */ | 54 /* OS(MACOSX) - Any Darwin-based OS, including Mac OS X and iPhone OS */ |
| 55 #ifdef __APPLE__ | 55 #ifdef __APPLE__ |
| 56 #define WTF_OS_DARWIN 1 | 56 #define WTF_OS_MACOSX 1 |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 /* OS(FREEBSD) - FreeBSD */ | 59 /* OS(FREEBSD) - FreeBSD */ |
| 60 #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__
) | 60 #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__
) |
| 61 #define WTF_OS_FREEBSD 1 | 61 #define WTF_OS_FREEBSD 1 |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 /* OS(LINUX) - Linux */ | 64 /* OS(LINUX) - Linux */ |
| 65 #ifdef __linux__ | 65 #ifdef __linux__ |
| 66 #define WTF_OS_LINUX 1 | 66 #define WTF_OS_LINUX 1 |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 /* OS(NETBSD) - NetBSD */ | 69 /* OS(NETBSD) - NetBSD */ |
| 70 #if defined(__NetBSD__) | 70 #if defined(__NetBSD__) |
| 71 #define WTF_OS_NETBSD 1 | 71 #define WTF_OS_NETBSD 1 |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 /* OS(OPENBSD) - OpenBSD */ | 74 /* OS(OPENBSD) - OpenBSD */ |
| 75 #ifdef __OpenBSD__ | 75 #ifdef __OpenBSD__ |
| 76 #define WTF_OS_OPENBSD 1 | 76 #define WTF_OS_OPENBSD 1 |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 /* OS(WINDOWS) - Any version of Windows */ | 79 /* OS(WINDOWS) - Any version of Windows */ |
| 80 #if defined(WIN32) || defined(_WIN32) | 80 #if defined(WIN32) || defined(_WIN32) |
| 81 #define WTF_OS_WINDOWS 1 | 81 #define WTF_OS_WINDOWS 1 |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 /* OS(UNIX) - Any Unix-like system */ | 84 /* OS(UNIX) - Any Unix-like system */ |
| 85 #if OS(ANDROID) \ | 85 #if OS(ANDROID) \ |
| 86 || OS(DARWIN) \ | 86 || OS(MACOSX) \ |
| 87 || OS(FREEBSD) \ | 87 || OS(FREEBSD) \ |
| 88 || OS(LINUX) \ | 88 || OS(LINUX) \ |
| 89 || OS(NETBSD) \ | 89 || OS(NETBSD) \ |
| 90 || OS(OPENBSD) \ | 90 || OS(OPENBSD) \ |
| 91 || defined(unix) \ | 91 || defined(unix) \ |
| 92 || defined(__unix) \ | 92 || defined(__unix) \ |
| 93 || defined(__unix__) | 93 || defined(__unix__) |
| 94 #define WTF_OS_UNIX 1 | 94 #define WTF_OS_UNIX 1 |
| 95 #endif | 95 #endif |
| 96 | 96 |
| 97 /* Operating environments */ | 97 /* Operating environments */ |
| 98 | 98 |
| 99 #if OS(ANDROID) | 99 #if OS(ANDROID) |
| 100 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 | 100 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 |
| 101 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 | 101 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 |
| 102 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 | 102 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 |
| 103 #else | 103 #else |
| 104 #define WTF_USE_ICCJPEG 1 | 104 #define WTF_USE_ICCJPEG 1 |
| 105 #define WTF_USE_QCMSLIB 1 | 105 #define WTF_USE_QCMSLIB 1 |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 #if OS(DARWIN) | 108 #if OS(MACOSX) |
| 109 #define WTF_USE_CF 1 | 109 #define WTF_USE_CF 1 |
| 110 | 110 |
| 111 /* We can't override the global operator new and delete on OS(DARWIN) because | 111 /* We can't override the global operator new and delete on OS(MACOSX) because |
| 112 * some object are allocated by WebKit and deallocated by the embedder. */ | 112 * some object are allocated by WebKit and deallocated by the embedder. */ |
| 113 #else /* !OS(DARWIN) */ | 113 #else /* !OS(MACOSX) */ |
| 114 /* On non-OS(DARWIN), the "system malloc" is actually TCMalloc anyway, so there'
s | 114 /* On non-OS(MACOSX), the "system malloc" is actually TCMalloc anyway, so there'
s |
| 115 * no need to use WebKit's copy of TCMalloc. */ | 115 * no need to use WebKit's copy of TCMalloc. */ |
| 116 #define WTF_USE_SYSTEM_MALLOC 1 | 116 #define WTF_USE_SYSTEM_MALLOC 1 |
| 117 #endif /* OS(DARWIN) */ | 117 #endif /* OS(MACOSX) */ |
| 118 | 118 |
| 119 #if !defined(HAVE_ACCESSIBILITY) | 119 #if !defined(HAVE_ACCESSIBILITY) |
| 120 #define HAVE_ACCESSIBILITY 1 | 120 #define HAVE_ACCESSIBILITY 1 |
| 121 #endif /* !defined(HAVE_ACCESSIBILITY) */ | 121 #endif /* !defined(HAVE_ACCESSIBILITY) */ |
| 122 | 122 |
| 123 #if OS(UNIX) | 123 #if OS(UNIX) |
| 124 #define HAVE_MMAP 1 | 124 #define HAVE_MMAP 1 |
| 125 #define HAVE_SIGNAL_H 1 | 125 #define HAVE_SIGNAL_H 1 |
| 126 #define HAVE_SYS_TIME_H 1 | 126 #define HAVE_SYS_TIME_H 1 |
| 127 #define WTF_USE_PTHREADS 1 | 127 #define WTF_USE_PTHREADS 1 |
| 128 #endif /* OS(UNIX) */ | 128 #endif /* OS(UNIX) */ |
| 129 | 129 |
| 130 #if !defined(HAVE_VASPRINTF) | 130 #if !defined(HAVE_VASPRINTF) |
| 131 #if !COMPILER(MSVC) | 131 #if !COMPILER(MSVC) |
| 132 #define HAVE_VASPRINTF 1 | 132 #define HAVE_VASPRINTF 1 |
| 133 #endif | 133 #endif |
| 134 #endif | 134 #endif |
| 135 | 135 |
| 136 #if !OS(WINDOWS) && !OS(ANDROID) | 136 #if !OS(WINDOWS) && !OS(ANDROID) |
| 137 #define HAVE_TM_GMTOFF 1 | 137 #define HAVE_TM_GMTOFF 1 |
| 138 #define HAVE_TM_ZONE 1 | 138 #define HAVE_TM_ZONE 1 |
| 139 #define HAVE_TIMEGM 1 | 139 #define HAVE_TIMEGM 1 |
| 140 #endif | 140 #endif |
| 141 | 141 |
| 142 #if OS(DARWIN) | 142 #if OS(MACOSX) |
| 143 #define HAVE_DISPATCH_H 1 | 143 #define HAVE_DISPATCH_H 1 |
| 144 #define HAVE_PTHREAD_SETNAME_NP 1 | 144 #define HAVE_PTHREAD_SETNAME_NP 1 |
| 145 #endif /* OS(DARWIN) */ | 145 #endif /* OS(MACOSX) */ |
| 146 | 146 |
| 147 #if OS(WINDOWS) | 147 #if OS(WINDOWS) |
| 148 | 148 |
| 149 // If we don't define these, they get defined in windef.h. | 149 // If we don't define these, they get defined in windef.h. |
| 150 // We want to use std::min and std::max. | 150 // We want to use std::min and std::max. |
| 151 #ifndef max | 151 #ifndef max |
| 152 #define max max | 152 #define max max |
| 153 #endif | 153 #endif |
| 154 #ifndef min | 154 #ifndef min |
| 155 #define min min | 155 #define min min |
| (...skipping 15 matching lines...) Expand all Loading... |
| 171 | 171 |
| 172 #if COMPILER(MSVC) | 172 #if COMPILER(MSVC) |
| 173 #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1 | 173 #define SKIP_STATIC_CONSTRUCTORS_ON_MSVC 1 |
| 174 #else | 174 #else |
| 175 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 | 175 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 |
| 176 #endif | 176 #endif |
| 177 | 177 |
| 178 #ifndef __STDC_FORMAT_MACROS | 178 #ifndef __STDC_FORMAT_MACROS |
| 179 #define __STDC_FORMAT_MACROS 1 | 179 #define __STDC_FORMAT_MACROS 1 |
| 180 #endif | 180 #endif |
| OLD | NEW |