summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-03-24 22:57:42 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-03-29 16:48:47 (GMT)
commit8647c6cd6825764b8cd69828c185bad14ffc8a7e (patch)
tree1522a3230fcd1ce2b76a024773d6bb52856c50f5 /Tests/CMakeLib
parent21a6ed49f2d06982e080eb5fc2f0a7d1c2ea0846 (diff)
downloadCMake-8647c6cd6825764b8cd69828c185bad14ffc8a7e.zip
CMake-8647c6cd6825764b8cd69828c185bad14ffc8a7e.tar.gz
CMake-8647c6cd6825764b8cd69828c185bad14ffc8a7e.tar.bz2
testEncoding: include <cmsys/ConsoleBuf.hxx> on Windows only
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/testEncoding.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testEncoding.cxx b/Tests/CMakeLib/testEncoding.cxx
index 88743b0..20ba9e3 100644
--- a/Tests/CMakeLib/testEncoding.cxx
+++ b/Tests/CMakeLib/testEncoding.cxx
@@ -2,7 +2,9 @@
#include <iostream>
#include <string>
+#ifdef _WIN32
#include <cmsys/ConsoleBuf.hxx>
+#endif
#ifdef _WIN32
void setEncoding(cmsys::ConsoleBuf::Manager& buf, UINT codepage)