Chromium Code Reviews| Index: ppapi/c/pp_macros.h |
| diff --git a/ppapi/c/pp_macros.h b/ppapi/c/pp_macros.h |
| index e5cd7dd0d5da0ff6f73cd8858ef5271f12ba9ce9..0427fe01fa8c601676a5dacbddfb1bcdc64fd00d 100644 |
| --- a/ppapi/c/pp_macros.h |
| +++ b/ppapi/c/pp_macros.h |
| @@ -93,6 +93,14 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, struct NAME, SIZE) |
| #define PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(NAME, SIZE) \ |
| PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, enum NAME, SIZE) |
| +/* These precompiler names were copied from chromium's build_config.h. */ |
| +#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
|
| + defined(__OpenBSD__) || defined(__sun) || defined(__native_client__) |
| +#define PPAPI_HAS_POSIX_THREADS 1 |
| +#elif defined (_MSC_VER) |
| +#define PPAPI_HAS_WINDOWS_THREADS 1 |
| +#endif |
| + |
| /** |
| * @} |
| * End of addtogroup PP |