Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: build/build_config.h

Issue 113123: Fleshes out WidgetGTK and WindowGTK a bit more. This is still vary... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | chrome/views/widget/widget_gtk.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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:
11 // ARCH_CPU_X86 / ARCH_CPU_X86_64 / ARCH_CPU_X86_FAMILY (X86 or X86_64) 11 // ARCH_CPU_X86 / ARCH_CPU_X86_64 / ARCH_CPU_X86_FAMILY (X86 or X86_64)
12 // ARCH_CPU_32_BITS / ARCH_CPU_64_BITS 12 // ARCH_CPU_32_BITS / ARCH_CPU_64_BITS
13 13
14 #ifndef BUILD_BUILD_CONFIG_H_ 14 #ifndef BUILD_BUILD_CONFIG_H_
15 #define BUILD_BUILD_CONFIG_H_ 15 #define BUILD_BUILD_CONFIG_H_
16 16
17 // A set of macros to use for platform detection. 17 // A set of macros to use for platform detection.
18 #if defined(__APPLE__) 18 #if defined(__APPLE__)
19 #define OS_MACOSX 1 19 #define OS_MACOSX 1
20 #elif defined(__linux__) 20 #elif defined(__linux__)
21 #define OS_LINUX 1 21 #define OS_LINUX 1
22 // Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined.
23 #if !defined(TOOLKIT_VIEWS)
24 #define TOOLKIT_GTK
25 #endif
22 #elif defined(_WIN32) 26 #elif defined(_WIN32)
23 #define OS_WIN 1 27 #define OS_WIN 1
24 #else 28 #else
25 #error Please add support for your platform in build/build_config.h 29 #error Please add support for your platform in build/build_config.h
26 #endif 30 #endif
27 31
28 // For access to standard POSIX features, use OS_POSIX instead of a more 32 // For access to standard POSIX features, use OS_POSIX instead of a more
29 // specific macro. 33 // specific macro.
30 #if defined(OS_MACOSX) || defined(OS_LINUX) 34 #if defined(OS_MACOSX) || defined(OS_LINUX)
31 #define OS_POSIX 1 35 #define OS_POSIX 1
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #define WCHAR_T_IS_UTF16 70 #define WCHAR_T_IS_UTF16
67 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ 71 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \
68 defined(__WCHAR_MAX__) && \ 72 defined(__WCHAR_MAX__) && \
69 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) 73 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff)
70 #define WCHAR_T_IS_UTF32 74 #define WCHAR_T_IS_UTF32
71 #else 75 #else
72 #error Please add support for your compiler in build/build_config.h 76 #error Please add support for your compiler in build/build_config.h
73 #endif 77 #endif
74 78
75 #endif // BUILD_BUILD_CONFIG_H_ 79 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | chrome/views/widget/widget_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698