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
4f7018ed
Commit
4f7018ed
authored
Dec 04, 2013
by
kosak
Browse files
Distinguish between C++11 language and library support for <initializer_list>.
Fix spelling: repositary -> repository.
parent
5d83ee08
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
README
README
+1
-1
include/gtest/internal/gtest-port.h
include/gtest/internal/gtest-port.h
+8
-0
No files found.
README
View file @
4f7018ed
...
...
@@ -72,7 +72,7 @@ Getting the Source
There
are
two
primary
ways
of
getting
Google
Test
's source code: you
can download a stable source release in your preferred archive format,
or directly check out the source from our Subversion (SVN) reposit
a
ry.
or directly check out the source from our Subversion (SVN) reposit
o
ry.
The SVN checkout requires a few extra steps and some extra software
packages on your system, but lets you track the latest development and
make patches much more easily, so we highly encourage it.
...
...
include/gtest/internal/gtest-port.h
View file @
4f7018ed
...
...
@@ -282,6 +282,14 @@
# endif
#endif
// C++11 specifies that <initializer_list> provides std::initializer_list. Use
// that if gtest is used in C++11 mode and libstdc++ isn't very old (binaries
// targeting OS X 10.6 can build with clang but need to use gcc4.2's
// libstdc++).
#if GTEST_LANG_CXX11 && (!defined(__GLIBCXX__) || __GLIBCXX__ > 20110325)
# define GTEST_HAS_STD_INITIALIZER_LIST_ 1
#endif
// Brings in definitions for functions used in the testing::internal::posix
// namespace (read, write, close, chdir, isatty, stat). We do not currently
// use them on Windows Mobile.
...
...
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