From c27a90239e609844c675229148aee1ce3f14fec9 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 1 Sep 2021 20:40:02 +0300 Subject: [PATCH] Fix build errors with clang on Windows (#924) --- src/Config.cpp | 2 ++ unittest/test_Win32Util.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Config.cpp b/src/Config.cpp index 0ce230313..9e9b593ec 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -55,7 +55,9 @@ using nonstd::optional; # define DLLIMPORT #endif +#ifndef environ DLLIMPORT extern char** environ; +#endif namespace { diff --git a/unittest/test_Win32Util.cpp b/unittest/test_Win32Util.cpp index f836171c6..cff6a7f81 100644 --- a/unittest/test_Win32Util.cpp +++ b/unittest/test_Win32Util.cpp @@ -21,6 +21,8 @@ #include "third_party/doctest.h" +#include + TEST_SUITE_BEGIN("Win32Util"); TEST_CASE("Win32Util::argv_to_string") -- 2.47.2