Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
1d53731f
Commit
1d53731f
authored
Feb 14, 2015
by
kosak
Browse files
Enable GTest thread safety on Native Client.
parent
8209a45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/gtest/internal/gtest-port.h
include/gtest/internal/gtest-port.h
+3
-3
No files found.
include/gtest/internal/gtest-port.h
View file @
1d53731f
...
...
@@ -635,13 +635,13 @@ struct _RTL_CRITICAL_SECTION;
// Determines whether Google Test can use the pthreads library.
#ifndef GTEST_HAS_PTHREAD
// The user didn't tell us explicitly, so we
assume pthreads support is
//
available on Linux and Mac
.
// The user didn't tell us explicitly, so we
make reasonable assumptions about
//
which platforms have pthreads support
.
//
// To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0
// to your compiler flags.
# 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
#if GTEST_HAS_PTHREAD
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment