| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 // On Mac, the system allocator is the real OS X system allocator. | 103 // On Mac, the system allocator is the real OS X system allocator. |
| 104 // On Android, the system allocator is the libc system allocator. | 104 // On Android, the system allocator is the libc system allocator. |
| 105 // On other platforms, we've overriden the system allocator with tcmalloc. | 105 // On other platforms, we've overriden the system allocator with tcmalloc. |
| 106 // PartitionAlloc seems to be faster than all of these, so on all platforms | 106 // PartitionAlloc seems to be faster than all of these, so on all platforms |
| 107 // we use it for a subset of performance sensitive Blink classes (tagged by | 107 // we use it for a subset of performance sensitive Blink classes (tagged by |
| 108 // WTF_MAKE_FAST_ALLOCATED. | 108 // WTF_MAKE_FAST_ALLOCATED. |
| 109 #define WTF_USE_SYSTEM_MALLOC 0 | 109 #define WTF_USE_SYSTEM_MALLOC 0 |
| 110 | 110 |
| 111 #if OS(POSIX) | 111 #if OS(POSIX) |
| 112 #define HAVE_MMAP 1 | |
| 113 #define HAVE_SIGNAL_H 1 | 112 #define HAVE_SIGNAL_H 1 |
| 114 #define HAVE_SYS_TIME_H 1 | 113 #define HAVE_SYS_TIME_H 1 |
| 115 #define WTF_USE_PTHREADS 1 | 114 #define WTF_USE_PTHREADS 1 |
| 116 #endif /* OS(POSIX) */ | 115 #endif /* OS(POSIX) */ |
| 117 | 116 |
| 118 #if !defined(HAVE_VASPRINTF) | |
| 119 #if !COMPILER(MSVC) | |
| 120 #define HAVE_VASPRINTF 1 | |
| 121 #endif | |
| 122 #endif | |
| 123 | |
| 124 #if !OS(WIN) && !OS(ANDROID) | 117 #if !OS(WIN) && !OS(ANDROID) |
| 125 #define HAVE_TM_GMTOFF 1 | 118 #define HAVE_TM_GMTOFF 1 |
| 126 #define HAVE_TM_ZONE 1 | 119 #define HAVE_TM_ZONE 1 |
| 127 #define HAVE_TIMEGM 1 | 120 #define HAVE_TIMEGM 1 |
| 128 #endif | 121 #endif |
| 129 | 122 |
| 130 #if OS(MACOSX) | 123 #if OS(MACOSX) |
| 131 #define HAVE_DISPATCH_H 1 | |
| 132 #define HAVE_PTHREAD_SETNAME_NP 1 | 124 #define HAVE_PTHREAD_SETNAME_NP 1 |
| 133 #define WTF_USE_NEW_THEME 1 | 125 #define WTF_USE_NEW_THEME 1 |
| 134 #endif /* OS(MACOSX) */ | 126 #endif /* OS(MACOSX) */ |
| 135 | 127 |
| 136 #if OS(WIN) | 128 #if OS(WIN) |
| 137 | 129 |
| 138 // If we don't define these, they get defined in windef.h. | 130 // If we don't define these, they get defined in windef.h. |
| 139 // We want to use std::min and std::max. | 131 // We want to use std::min and std::max. |
| 140 #ifndef max | 132 #ifndef max |
| 141 #define max max | 133 #define max max |
| (...skipping 22 matching lines...) Expand all Loading... |
| 164 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 | 156 #define SKIP_STATIC_CONSTRUCTORS_ON_GCC 1 |
| 165 #endif | 157 #endif |
| 166 | 158 |
| 167 #ifndef __STDC_FORMAT_MACROS | 159 #ifndef __STDC_FORMAT_MACROS |
| 168 #define __STDC_FORMAT_MACROS 1 | 160 #define __STDC_FORMAT_MACROS 1 |
| 169 #endif | 161 #endif |
| 170 | 162 |
| 171 #if OS(LINUX) || OS(ANDROID) || ENABLE(HARFBUZZ_ON_WINDOWS) | 163 #if OS(LINUX) || OS(ANDROID) || ENABLE(HARFBUZZ_ON_WINDOWS) |
| 172 #define WTF_USE_HARFBUZZ 1 | 164 #define WTF_USE_HARFBUZZ 1 |
| 173 #endif | 165 #endif |
| OLD | NEW |