Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 /* From pp_macros.idl modified Sat Jul 16 16:50:26 2011. */ | 6 /* From pp_macros.idl modified Sat Jul 16 16:50:26 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PP_MACROS_H_ | 8 #ifndef PPAPI_C_PP_MACROS_H_ |
| 9 #define PPAPI_C_PP_MACROS_H_ | 9 #define PPAPI_C_PP_MACROS_H_ |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 | 86 |
| 87 /* PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES is for typenames that contain 'enum' | 87 /* PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES is for typenames that contain 'enum' |
| 88 in C. That is, enum names that are not typedefs. | 88 in C. That is, enum names that are not typedefs. |
| 89 E.g.: | 89 E.g.: |
| 90 enum Bar { A = 0, B = 1 }; | 90 enum Bar { A = 0, B = 1 }; |
| 91 PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(Foo, 4); | 91 PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(Foo, 4); |
| 92 */ | 92 */ |
| 93 #define PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(NAME, SIZE) \ | 93 #define PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(NAME, SIZE) \ |
| 94 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, enum NAME, SIZE) | 94 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, enum NAME, SIZE) |
| 95 | 95 |
| 96 /* These precompiler names were copied from chromium's build_config.h. */ | |
| 97 #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ | |
|
brettw
2011/08/16 22:55:53
I'd rather not have this in this shared header fil
dmichael (off chromium)
2011/08/17 21:15:15
Done; that makes the most sense for this CL. I thi
| |
| 98 defined(__OpenBSD__) || defined(__sun) || defined(__native_client__) | |
| 99 #define PPAPI_HAS_POSIX_THREADS 1 | |
| 100 #elif defined (_MSC_VER) | |
| 101 #define PPAPI_HAS_WINDOWS_THREADS 1 | |
| 102 #endif | |
| 103 | |
| 96 /** | 104 /** |
| 97 * @} | 105 * @} |
| 98 * End of addtogroup PP | 106 * End of addtogroup PP |
| 99 */ | 107 */ |
| 100 | 108 |
| 101 #endif /* PPAPI_C_PP_MACROS_H_ */ | 109 #endif /* PPAPI_C_PP_MACROS_H_ */ |
| 102 | 110 |
| OLD | NEW |