mirror of
https://github.com/google/googletest.git
synced 2025-03-10 17:36:10 +00:00
Enable GTest thread safety on Native Client.
This commit is contained in:
parent
8209a45e24
commit
1d53731f2c
@ -635,13 +635,13 @@ struct _RTL_CRITICAL_SECTION;
|
|||||||
|
|
||||||
// Determines whether Google Test can use the pthreads library.
|
// Determines whether Google Test can use the pthreads library.
|
||||||
#ifndef GTEST_HAS_PTHREAD
|
#ifndef GTEST_HAS_PTHREAD
|
||||||
// The user didn't tell us explicitly, so we assume pthreads support is
|
// The user didn't tell us explicitly, so we make reasonable assumptions about
|
||||||
// available on Linux and Mac.
|
// which platforms have pthreads support.
|
||||||
//
|
//
|
||||||
// To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0
|
// To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0
|
||||||
// to your compiler flags.
|
// to your compiler flags.
|
||||||
# define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX \
|
# define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX \
|
||||||
|| GTEST_OS_QNX || GTEST_OS_FREEBSD)
|
|| GTEST_OS_QNX || GTEST_OS_FREEBSD || GTEST_OS_NACL)
|
||||||
#endif // GTEST_HAS_PTHREAD
|
#endif // GTEST_HAS_PTHREAD
|
||||||
|
|
||||||
#if GTEST_HAS_PTHREAD
|
#if GTEST_HAS_PTHREAD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user