Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
04f025dd
Commit
04f025dd
authored
Dec 02, 2008
by
shiqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes compatibility with Linux IA-64. By Rainer Klaffenboeck.
parent
3e1e473c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
gtest-port.h
include/gtest/internal/gtest-port.h
+27
-10
No files found.
include/gtest/internal/gtest-port.h
View file @
04f025dd
...
@@ -40,22 +40,24 @@
...
@@ -40,22 +40,24 @@
// control Google Test's behavior. If the user doesn't define a macro
// control Google Test's behavior. If the user doesn't define a macro
// in this list, Google Test will define it.
// in this list, Google Test will define it.
//
//
// GTEST_HAS_STD_STRING - Define it to 1/0 to indicate that
// GTEST_HAS_CLONE - Define it to 1/0 to indicate that clone(2)
// std::string does/doesn't work (Google Test can
// is/isn't available.
// be used where std::string is unavailable).
// GTEST_HAS_GLOBAL_STRING - Define it to 1/0 to indicate that ::string
// GTEST_HAS_GLOBAL_STRING - Define it to 1/0 to indicate that ::string
// is/isn't available (some systems define
// is/isn't available (some systems define
// ::string, which is different to std::string).
// ::string, which is different to std::string).
// GTEST_HAS_STD_WSTRING - Define it to 1/0 to indicate that
// std::wstring does/doesn't work (Google Test can
// be used where std::wstring is unavailable).
// GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string
// GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string
// is/isn't available (some systems define
// is/isn't available (some systems define
// ::wstring, which is different to std::wstring).
// ::wstring, which is different to std::wstring).
// GTEST_HAS_RTTI - Define it to 1/0 to indicate that RTTI is/isn't
// enabled.
// GTEST_HAS_PTHREAD - Define it to 1/0 to indicate that <pthread.h>
// GTEST_HAS_PTHREAD - Define it to 1/0 to indicate that <pthread.h>
// is/isn't available.
// is/isn't available.
// GTEST_HAS_RTTI - Define it to 1/0 to indicate that RTTI is/isn't
// enabled.
// GTEST_HAS_STD_STRING - Define it to 1/0 to indicate that
// std::string does/doesn't work (Google Test can
// be used where std::string is unavailable).
// GTEST_HAS_STD_WSTRING - Define it to 1/0 to indicate that
// std::wstring does/doesn't work (Google Test can
// be used where std::wstring is unavailable).
// GTEST_HAS_TR1_TUPLE 1 - Define it to 1/0 to indicate tr1::tuple
// GTEST_HAS_TR1_TUPLE 1 - Define it to 1/0 to indicate tr1::tuple
// is/isn't available.
// is/isn't available.
...
@@ -315,8 +317,23 @@
...
@@ -315,8 +317,23 @@
#endif // __GNUC__
#endif // __GNUC__
#endif // GTEST_HAS_TR1_TUPLE
#endif // GTEST_HAS_TR1_TUPLE
// Determines whether clone(2) is supported.
// Usually it will only be available on Linux, excluding
// Linux on the Itanium architecture.
// Also see http://linux.die.net/man/2/clone.
#ifndef GTEST_HAS_CLONE
// The user didn't tell us, so we need to figure it out.
#if defined(GTEST_OS_LINUX) && !defined(__ia64__)
#define GTEST_HAS_CLONE 1
#else
#define GTEST_HAS_CLONE 0
#endif // defined(GTEST_OS_LINUX) && !defined(__ia64__)
#endif // GTEST_HAS_CLONE
// Determines whether to support death tests.
// Determines whether to support death tests.
#if GTEST_HAS_STD_STRING &&
defined(GTEST_OS_LINUX)
#if GTEST_HAS_STD_STRING &&
GTEST_HAS_CLONE
#define GTEST_HAS_DEATH_TEST
#define GTEST_HAS_DEATH_TEST
// On some platforms, <regex.h> needs someone to define size_t, and
// On some platforms, <regex.h> needs someone to define size_t, and
// won't compile otherwise. We can #include it here as we already
// won't compile otherwise. We can #include it here as we already
...
@@ -326,7 +343,7 @@
...
@@ -326,7 +343,7 @@
#include <vector>
#include <vector>
#include <fcntl.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/mman.h>
#endif // GTEST_HAS_STD_STRING &&
defined(GTEST_OS_LINUX)
#endif // GTEST_HAS_STD_STRING &&
GTEST_HAS_CLONE
// Determines whether to support value-parameterized tests.
// Determines whether to support value-parameterized tests.
...
...
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