| 2700 | inline const char* StrError(int errnum) { return strerror(errnum); } |
| 2701 | #endif |
| 2702 | inline const char* GetEnv(const char* name) { |
| 2703 | #if GTEST_OS_WINDOWS_MOBILE |
| 2704 | // We are on Windows CE, which has no environment variables. |
| 2705 | return NULL; |
| 2706 | #elif defined(__BORLANDC__) || defined(__SunOS_5_8) || defined(__SunOS_5_9) |
| 2707 | // Environment variables which we programmatically clear will be set to the |
| 2708 | // empty string rather than unset (NULL). Handle that case. |
| 2709 | const char* const env = getenv(name); |
| 2710 | return (env != NULL && env[0] != '\0') ? env : NULL; |
| 2711 | #else |
| 2712 | return getenv(name); |
| 2713 | #endif |
| 2714 | } |
| 2715 | |
| 2716 | #ifdef _MSC_VER |
| 2717 | # pragma warning(pop) // Restores the warning state. |
no outgoing calls
no test coverage detected