aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-port.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-04-28 00:28:09 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-04-28 00:28:09 +0000
commitc78ae6196dc9c24380b5cf86f8fd75a4d3edc704 (patch)
treeea5077b43fd8b0e10aedb67eb7488254efff7814 /src/gtest-port.cc
parentf2334aa19555063791ec16fe2b476ec00195bbb8 (diff)
downloadgoogletest-c78ae6196dc9c24380b5cf86f8fd75a4d3edc704.tar.gz
googletest-c78ae6196dc9c24380b5cf86f8fd75a4d3edc704.tar.bz2
googletest-c78ae6196dc9c24380b5cf86f8fd75a4d3edc704.zip
Ports gtest to C++Builder, by Josh Kelley.
Diffstat (limited to 'src/gtest-port.cc')
-rw-r--r--src/gtest-port.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtest-port.cc b/src/gtest-port.cc
index e5c793f8..7f6db79f 100644
--- a/src/gtest-port.cc
+++ b/src/gtest-port.cc
@@ -68,8 +68,8 @@
namespace testing {
namespace internal {
-#ifdef _MSC_VER
-// MSVC does not provide a definition of STDERR_FILENO.
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+// MSVC and C++Builder do not provide a definition of STDERR_FILENO.
const int kStdErrFileno = 2;
#else
const int kStdErrFileno = STDERR_FILENO;