diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 93d30a27fd..4754b597c5 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -58,7 +58,9 @@ #include #endif +#ifndef _MSC_VER extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms +#endif namespace {