| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file adds defines about the platform we're currently building on. | 5 // This file adds defines about the platform we're currently building on. |
| 6 // Operating System: | 6 // Operating System: |
| 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) | 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) |
| 8 // Compiler: | 8 // Compiler: |
| 9 // COMPILER_MSVC / COMPILER_GCC | 9 // COMPILER_MSVC / COMPILER_GCC |
| 10 // Processor: | 10 // Processor: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // For access to standard POSIXish features, use OS_POSIX instead of a | 52 // For access to standard POSIXish features, use OS_POSIX instead of a |
| 53 // more specific macro. | 53 // more specific macro. |
| 54 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | 54 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ |
| 55 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) | 55 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) |
| 56 #define OS_POSIX 1 | 56 #define OS_POSIX 1 |
| 57 // Use base::DataPack for name/value pairs. | 57 // Use base::DataPack for name/value pairs. |
| 58 #define USE_BASE_DATA_PACK 1 | 58 #define USE_BASE_DATA_PACK 1 |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 // Use tcmalloc | |
| 62 #if defined(OS_WIN) && ! defined(NO_TCMALLOC) | |
| 63 #define USE_TCMALLOC 1 | |
| 64 #endif | |
| 65 | |
| 66 // Compiler detection. | 61 // Compiler detection. |
| 67 #if defined(__GNUC__) | 62 #if defined(__GNUC__) |
| 68 #define COMPILER_GCC 1 | 63 #define COMPILER_GCC 1 |
| 69 #elif defined(_MSC_VER) | 64 #elif defined(_MSC_VER) |
| 70 #define COMPILER_MSVC 1 | 65 #define COMPILER_MSVC 1 |
| 71 #else | 66 #else |
| 72 #error Please add support for your compiler in build/build_config.h | 67 #error Please add support for your compiler in build/build_config.h |
| 73 #endif | 68 #endif |
| 74 | 69 |
| 75 // Processor architecture detection. For more info on what's defined, see: | 70 // Processor architecture detection. For more info on what's defined, see: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to | 111 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to |
| 117 // compile in this mode (in particular, Chrome doesn't). This is intended for | 112 // compile in this mode (in particular, Chrome doesn't). This is intended for |
| 118 // other projects using base who manage their own dependencies and make sure | 113 // other projects using base who manage their own dependencies and make sure |
| 119 // short wchar works for them. | 114 // short wchar works for them. |
| 120 #define WCHAR_T_IS_UTF16 | 115 #define WCHAR_T_IS_UTF16 |
| 121 #else | 116 #else |
| 122 #error Please add support for your compiler in build/build_config.h | 117 #error Please add support for your compiler in build/build_config.h |
| 123 #endif | 118 #endif |
| 124 | 119 |
| 125 #endif // BUILD_BUILD_CONFIG_H_ | 120 #endif // BUILD_BUILD_CONFIG_H_ |
| OLD | NEW |