| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // For access to standard POSIXish features, use OS_POSIX instead of a | 54 // For access to standard POSIXish features, use OS_POSIX instead of a |
| 55 // more specific macro. | 55 // more specific macro. |
| 56 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | 56 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ |
| 57 defined(OS_OPENBSD) || defined(OS_SOLARIS) | 57 defined(OS_OPENBSD) || defined(OS_SOLARIS) |
| 58 #define OS_POSIX 1 | 58 #define OS_POSIX 1 |
| 59 // Use base::DataPack for name/value pairs. | 59 // Use base::DataPack for name/value pairs. |
| 60 #define USE_BASE_DATA_PACK 1 | 60 #define USE_BASE_DATA_PACK 1 |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 // Use tcmalloc | 63 // Use tcmalloc |
| 64 #if defined(OS_WIN) && !defined(NO_TCMALLOC) | 64 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) |
| 65 #define USE_TCMALLOC 1 | 65 #define USE_TCMALLOC 1 |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 // Compiler detection. | 68 // Compiler detection. |
| 69 #if defined(__GNUC__) | 69 #if defined(__GNUC__) |
| 70 #define COMPILER_GCC 1 | 70 #define COMPILER_GCC 1 |
| 71 #elif defined(_MSC_VER) | 71 #elif defined(_MSC_VER) |
| 72 #define COMPILER_MSVC 1 | 72 #define COMPILER_MSVC 1 |
| 73 #else | 73 #else |
| 74 #error Please add support for your compiler in build/build_config.h | 74 #error Please add support for your compiler in build/build_config.h |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to | 108 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to |
| 109 // compile in this mode (in particular, Chrome doesn't). This is intended for | 109 // compile in this mode (in particular, Chrome doesn't). This is intended for |
| 110 // other projects using base who manage their own dependencies and make sure | 110 // other projects using base who manage their own dependencies and make sure |
| 111 // short wchar works for them. | 111 // short wchar works for them. |
| 112 #define WCHAR_T_IS_UTF16 | 112 #define WCHAR_T_IS_UTF16 |
| 113 #else | 113 #else |
| 114 #error Please add support for your compiler in build/build_config.h | 114 #error Please add support for your compiler in build/build_config.h |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 #endif // BUILD_BUILD_CONFIG_H_ | 117 #endif // BUILD_BUILD_CONFIG_H_ |
| OLD | NEW |