| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN)) | 54 #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN)) |
| 55 #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN | 55 #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 // TODO(zhongwei.yao): WEBRTC_CPU_DETECTION is only used in one place; we should | 58 // TODO(zhongwei.yao): WEBRTC_CPU_DETECTION is only used in one place; we should |
| 59 // probably just remove it. | 59 // probably just remove it. |
| 60 #if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) | 60 #if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) |
| 61 #define WEBRTC_CPU_DETECTION | 61 #define WEBRTC_CPU_DETECTION |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 // TODO(pbos): Use webrtc/base/basictypes.h instead to include fixed-size ints. | |
| 65 #include <stdint.h> | 64 #include <stdint.h> |
| 66 | 65 |
| 67 // Annotate a function indicating the caller must examine the return value. | 66 // Annotate a function indicating the caller must examine the return value. |
| 68 // Use like: | 67 // Use like: |
| 69 // int foo() WARN_UNUSED_RESULT; | 68 // int foo() WARN_UNUSED_RESULT; |
| 70 // To explicitly ignore a result, see |ignore_result()| in <base/macros.h>. | 69 // To explicitly ignore a result, see |ignore_result()| in <base/macros.h>. |
| 71 // TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and | 70 // TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and |
| 72 // libjingle are merged. | 71 // libjingle are merged. |
| 73 #if !defined(WARN_UNUSED_RESULT) | 72 #if !defined(WARN_UNUSED_RESULT) |
| 74 #if defined(__GNUC__) || defined(__clang__) | 73 #if defined(__GNUC__) || defined(__clang__) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 102 // Annotate a function that will not return control flow to the caller. | 101 // Annotate a function that will not return control flow to the caller. |
| 103 #if defined(_MSC_VER) | 102 #if defined(_MSC_VER) |
| 104 #define NO_RETURN __declspec(noreturn) | 103 #define NO_RETURN __declspec(noreturn) |
| 105 #elif defined(__GNUC__) | 104 #elif defined(__GNUC__) |
| 106 #define NO_RETURN __attribute__ ((__noreturn__)) | 105 #define NO_RETURN __attribute__ ((__noreturn__)) |
| 107 #else | 106 #else |
| 108 #define NO_RETURN | 107 #define NO_RETURN |
| 109 #endif | 108 #endif |
| 110 | 109 |
| 111 #endif // WEBRTC_TYPEDEFS_H_ | 110 #endif // WEBRTC_TYPEDEFS_H_ |
| OLD | NEW |