]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix build errors with clang on Windows (#924)
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Wed, 1 Sep 2021 17:40:02 +0000 (20:40 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Sep 2021 17:40:02 +0000 (19:40 +0200)
src/Config.cpp
unittest/test_Win32Util.cpp

index 0ce230313e15da540d75b63b21b0db203636092f..9e9b593ec77ba2e34c4cee0aaea0068402f659f0 100644 (file)
@@ -55,7 +55,9 @@ using nonstd::optional;
 #  define DLLIMPORT
 #endif
 
+#ifndef environ
 DLLIMPORT extern char** environ;
+#endif
 
 namespace {
 
index f836171c61c7977f3a7cb3917576a95fd70acdce..cff6a7f8161933c0e8b80284d0a705bc5fb96c67 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "third_party/doctest.h"
 
+#include <iostream>
+
 TEST_SUITE_BEGIN("Win32Util");
 
 TEST_CASE("Win32Util::argv_to_string")