diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 05aa0c2d2c..ddb8983c6c 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -57,8 +57,10 @@ #include #endif +#ifndef _MSC_VER //! Necessary on some platforms -extern char** environ; +extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms +#endif namespace {