We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a3151f commit 75817e4Copy full SHA for 75817e4
1 file changed
core/src/workspace.cpp
@@ -8,7 +8,7 @@
8
namespace codspeed {
9
10
std::string safe_getenv(const char* var_name) {
11
-#ifdef _WIN32
+#ifdef _WIN32_FOOBARBAZ_UNDEFINED
12
// On Windows, use _dupenv_s instead of std::getenv for thread safety
13
// and to avoid issues with buffer ownership
14
char* value;
@@ -26,7 +26,7 @@ std::string safe_getenv(const char* var_name) {
26
#endif
27
}
28
29
-std::string get_path_relative_to_workspace(const std::string &path) {
+std::string get_path_relative_to_workspace(const std::string& path) {
30
// 1. Check for bazel usage, through the BUILD_WORKSPACE_DIRECTORY env var
31
// If so, __FILE__ will already be relative to the bazel workspace root
32
if (!safe_getenv("BUILD_WORKSPACE_DIRECTORY").empty()) {
0 commit comments