diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 17:57:09 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 17:57:09 +0000 |
commit | 697776a7f02d17b60d50e775a3c685269b8424a9 (patch) | |
tree | e37851210d1f6f73635a446e46b0f9ef490fcd29 /build/build_config.h | |
parent | a6f5ce00cdba02f54f3e80dbec99eaf78443e9ac (diff) | |
download | chromium_src-697776a7f02d17b60d50e775a3c685269b8424a9.zip chromium_src-697776a7f02d17b60d50e775a3c685269b8424a9.tar.gz chromium_src-697776a7f02d17b60d50e775a3c685269b8424a9.tar.bz2 |
Add atomic operations for ARM.
Review URL: http://codereview.chromium.org/57031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/build_config.h')
-rw-r--r-- | build/build_config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/build_config.h b/build/build_config.h index c4c8ed7..4d4295b 100644 --- a/build/build_config.h +++ b/build/build_config.h @@ -43,6 +43,7 @@ // Processor architecture detection. For more info on what's defined, see: // http://msdn.microsoft.com/en-us/library/b0084kay.aspx // http://www.agner.org/optimize/calling_conventions.pdf +// or with gcc, run: "echo | gcc -E -dM -" #if defined(_M_X64) || defined(__x86_64__) #define ARCH_CPU_X86_FAMILY 1 #define ARCH_CPU_X86_64 1 @@ -51,6 +52,10 @@ #define ARCH_CPU_X86_FAMILY 1 #define ARCH_CPU_X86 1 #define ARCH_CPU_32_BITS 1 +#elif defined(__ARMEL__) +#define ARCH_CPU_ARM_FAMILY 1 +#define ARCH_CPU_ARMEL 1 +#define ARCH_CPU_32_BITS 1 #else #error Please add support for your architecture in build/build_config.h #endif @@ -59,7 +64,8 @@ #if defined(OS_WIN) #define WCHAR_T_IS_UTF16 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ - defined(__WCHAR_MAX__) && __WCHAR_MAX__ == 0x7fffffff + defined(__WCHAR_MAX__) && \ + (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) #define WCHAR_T_IS_UTF32 #else #error Please add support for your compiler in build/build_config.h |