diff options
author | Martin Storsjo <martin@martin.st> | 2018-06-20 09:17:19 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2018-06-20 09:17:19 +0000 |
commit | e31533c0239a01840afc585e63034b54618b9aa6 (patch) | |
tree | e0cf8dc7479926869e3831e648867fa77eb972ed | |
parent | af8b24fa410824dd8fa37a979bbe500ffc569c94 (diff) | |
download | bcm5719-llvm-e31533c0239a01840afc585e63034b54618b9aa6.tar.gz bcm5719-llvm-e31533c0239a01840afc585e63034b54618b9aa6.zip |
[Support] Add missing includes of <system_error> for std::error_code
This fixes compilation with MinGW after SVN r333798, which added
a few functions within _WIN32 ifdefs, functions returning
std::error_code. Include everything that is needed instead of
hoping that this header being inclued transitively (which it apparently
is in MSVC builds).
llvm-svn: 335107
-rw-r--r-- | llvm/include/llvm/Support/ConvertUTF.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/Support/Path.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/ConvertUTF.h b/llvm/include/llvm/Support/ConvertUTF.h index d4846929780..6ae56c2470b 100644 --- a/llvm/include/llvm/Support/ConvertUTF.h +++ b/llvm/include/llvm/Support/ConvertUTF.h @@ -92,6 +92,7 @@ #include <cstddef> #include <string> +#include <system_error> // Wrap everything in namespace llvm so that programs can link with llvm and // their own version of the unicode libraries. diff --git a/llvm/include/llvm/Support/Path.h b/llvm/include/llvm/Support/Path.h index d580284af60..c4cc93721d7 100644 --- a/llvm/include/llvm/Support/Path.h +++ b/llvm/include/llvm/Support/Path.h @@ -20,6 +20,7 @@ #include "llvm/ADT/iterator.h" #include "llvm/Support/DataTypes.h" #include <iterator> +#include <system_error> namespace llvm { namespace sys { |