summaryrefslogtreecommitdiffstats
path: root/ConsoleBuf.hxx.in
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2018-06-01 16:53:33 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-01 16:54:12 (GMT)
commit3af8c7715b359affce99c575bdcb84ca87585bb2 (patch)
treebb551a6063ccc08c1fdae71d0a6cd592e369c906 /ConsoleBuf.hxx.in
parent1f52cb087aeb1eef7082884df6423b749e7f50c1 (diff)
downloadCMake-3af8c7715b359affce99c575bdcb84ca87585bb2.zip
CMake-3af8c7715b359affce99c575bdcb84ca87585bb2.tar.gz
CMake-3af8c7715b359affce99c575bdcb84ca87585bb2.tar.bz2
KWSys 2018-06-01 (8ef62b28)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 8ef62b289e0a99856893ef49106c2b2d94e9dd0c (master). Upstream Shortlog ----------------- Brad King (2): 6b9c233c clang-format.bash: update to clang-format-6.0 b7a341cf Empty commit at end of history preceding clang-format-6.0 style transition Kitware Robot (1): 828b6837 Revise C++ coding style using clang-format-6.0
Diffstat (limited to 'ConsoleBuf.hxx.in')
-rw-r--r--ConsoleBuf.hxx.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/ConsoleBuf.hxx.in b/ConsoleBuf.hxx.in
index cf68146..73a1efb 100644
--- a/ConsoleBuf.hxx.in
+++ b/ConsoleBuf.hxx.in
@@ -15,10 +15,10 @@
#include <string>
#if defined(_WIN32)
-#include <windows.h>
-#if __cplusplus >= 201103L
-#include <system_error>
-#endif
+# include <windows.h>
+# if __cplusplus >= 201103L
+# include <system_error>
+# endif
#endif
namespace @KWSYS_NAMESPACE@ {
@@ -231,12 +231,12 @@ private:
(!input && m_hOutput == INVALID_HANDLE_VALUE)) {
std::string errmsg =
"GetStdHandle(" + handleName + ") returned INVALID_HANDLE_VALUE";
-#if __cplusplus >= 201103L
+# if __cplusplus >= 201103L
throw std::system_error(::GetLastError(), std::system_category(),
errmsg);
-#else
+# else
throw std::runtime_error(errmsg);
-#endif
+# endif
}
}
UINT getConsolesCodepage()