| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * This file should be at the top of the #include group, followed by | 8 * This file should be at the top of the #include group, followed by |
| 9 * standard system #include files, then by native client specific | 9 * standard system #include files, then by native client specific |
| 10 * includes. | 10 * includes. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #define NACL_ARCH_CPU_X86_FAMILY 1 | 100 #define NACL_ARCH_CPU_X86_FAMILY 1 |
| 101 #define NACL_ARCH_CPU_X86 1 | 101 #define NACL_ARCH_CPU_X86 1 |
| 102 #define NACL_ARCH_CPU_32_BITS 1 | 102 #define NACL_ARCH_CPU_32_BITS 1 |
| 103 #define NACL_HOST_WORDSIZE 32 | 103 #define NACL_HOST_WORDSIZE 32 |
| 104 #elif defined(__ARMEL__) | 104 #elif defined(__ARMEL__) |
| 105 #define NACL_ARCH_CPU_ARM_FAMILY 1 | 105 #define NACL_ARCH_CPU_ARM_FAMILY 1 |
| 106 #define NACL_ARCH_CPU_ARMEL 1 | 106 #define NACL_ARCH_CPU_ARMEL 1 |
| 107 #define NACL_ARCH_CPU_32_BITS 1 | 107 #define NACL_ARCH_CPU_32_BITS 1 |
| 108 #define NACL_HOST_WORDSIZE 32 | 108 #define NACL_HOST_WORDSIZE 32 |
| 109 #define NACL_WCHAR_T_IS_UNSIGNED 1 | 109 #define NACL_WCHAR_T_IS_UNSIGNED 1 |
| 110 #elif defined(__mips__) |
| 111 #define NACL_ARCH_CPU_MIPS_FAMILY 1 |
| 112 #define NACL_ARCH_CPU_MIPS32 1 |
| 113 #define NACL_ARCH_CPU_32_BITS 1 |
| 114 #define NACL_HOST_WORDSIZE 32 |
| 115 #define NACL_WCHAR_T_IS_UNSIGNED 0 |
| 110 #elif defined(__pnacl__) | 116 #elif defined(__pnacl__) |
| 111 #define NACL_HOST_WORDSIZE 32 | 117 #define NACL_HOST_WORDSIZE 32 |
| 112 #else | 118 #else |
| 113 #error Unrecognized host architecture | 119 #error Unrecognized host architecture |
| 114 #endif | 120 #endif |
| 115 | 121 |
| 116 #ifndef SIZE_T_MAX | 122 #ifndef SIZE_T_MAX |
| 117 # define SIZE_T_MAX ((size_t) -1) | 123 # define SIZE_T_MAX ((size_t) -1) |
| 118 #endif | 124 #endif |
| 119 | 125 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 * macros for run-time error detectors (such as Valgrind/Memcheck). | 310 * macros for run-time error detectors (such as Valgrind/Memcheck). |
| 305 */ | 311 */ |
| 306 #if defined(_DEBUG) && NACL_LINUX | 312 #if defined(_DEBUG) && NACL_LINUX |
| 307 #include "native_client/src/third_party/valgrind/memcheck.h" | 313 #include "native_client/src/third_party/valgrind/memcheck.h" |
| 308 #define NACL_MAKE_MEM_UNDEFINED(a, b) (void) VALGRIND_MAKE_MEM_UNDEFINED(a, b) | 314 #define NACL_MAKE_MEM_UNDEFINED(a, b) (void) VALGRIND_MAKE_MEM_UNDEFINED(a, b) |
| 309 #else | 315 #else |
| 310 #define NACL_MAKE_MEM_UNDEFINED(a, b) | 316 #define NACL_MAKE_MEM_UNDEFINED(a, b) |
| 311 #endif | 317 #endif |
| 312 | 318 |
| 313 #endif /* NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ */ | 319 #endif /* NATIVE_CLIENT_SRC_INCLUDE_PORTABILITY_H_ */ |
| OLD | NEW |