Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: ppapi/c/pp_macros.h

Issue 7648033: Add means for running some tests only o-o-p, add messaging o-o-p test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enable the test on Windows. Make each thread send multiple messages. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « ppapi/c/dev/ppb_testing_dev.h ('k') | ppapi/ppapi_tests.gypi » ('j') | ppapi/ppapi_tests.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698