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 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI | 8 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI |
9 // Compiler: | 9 // Compiler: |
10 // COMPILER_MSVC / COMPILER_GCC | 10 // COMPILER_MSVC / COMPILER_GCC |
(...skipping 30 matching lines...) Expand all Loading... |
41 #elif defined(__linux__) | 41 #elif defined(__linux__) |
42 #define OS_LINUX 1 | 42 #define OS_LINUX 1 |
43 // include a system header to pull in features.h for glibc/uclibc macros. | 43 // include a system header to pull in features.h for glibc/uclibc macros. |
44 #include <unistd.h> | 44 #include <unistd.h> |
45 #if defined(__GLIBC__) && !defined(__UCLIBC__) | 45 #if defined(__GLIBC__) && !defined(__UCLIBC__) |
46 // we really are using glibc, not uClibc pretending to be glibc | 46 // we really are using glibc, not uClibc pretending to be glibc |
47 #define LIBC_GLIBC 1 | 47 #define LIBC_GLIBC 1 |
48 #endif | 48 #endif |
49 #elif defined(_WIN32) | 49 #elif defined(_WIN32) |
50 #define OS_WIN 1 | 50 #define OS_WIN 1 |
| 51 #define TOOLKIT_VIEWS 1 |
51 #elif defined(__FreeBSD__) | 52 #elif defined(__FreeBSD__) |
52 #define OS_FREEBSD 1 | 53 #define OS_FREEBSD 1 |
53 #elif defined(__OpenBSD__) | 54 #elif defined(__OpenBSD__) |
54 #define OS_OPENBSD 1 | 55 #define OS_OPENBSD 1 |
55 #elif defined(__sun) | 56 #elif defined(__sun) |
56 #define OS_SOLARIS 1 | 57 #define OS_SOLARIS 1 |
57 #elif defined(__QNXNTO__) | 58 #elif defined(__QNXNTO__) |
58 #define OS_QNX 1 | 59 #define OS_QNX 1 |
59 #else | 60 #else |
60 #error Please add support for your platform in build/build_config.h | 61 #error Please add support for your platform in build/build_config.h |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 #if defined(OS_ANDROID) | 159 #if defined(OS_ANDROID) |
159 // The compiler thinks std::string::const_iterator and "const char*" are | 160 // The compiler thinks std::string::const_iterator and "const char*" are |
160 // equivalent types. | 161 // equivalent types. |
161 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 162 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
162 // The compiler thinks base::string16::const_iterator and "char16*" are | 163 // The compiler thinks base::string16::const_iterator and "char16*" are |
163 // equivalent types. | 164 // equivalent types. |
164 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 165 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
165 #endif | 166 #endif |
166 | 167 |
167 #endif // BUILD_BUILD_CONFIG_H_ | 168 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |