PiperOrigin-RevId:
454940948
Change-Id: Ic87dadfe9c6fc8882b0f425aa2056f0cc7a90b55
return content;
}
-#endif // _MSC_VER
+
+ #if defined(_MSC_VER) || defined(__BORLANDC__)
+ // MSVC and C++Builder do not provide a definition of STDERR_FILENO.
+ const int kStdOutFileno = 1;
+ const int kStdErrFileno = 2;
+ #else
+ const int kStdOutFileno = STDOUT_FILENO;
+ const int kStdErrFileno = STDERR_FILENO;
++#endif // defined(_MSC_VER) || defined(__BORLANDC__)
// Starts capturing stdout.
void CaptureStdout() {