Avoid the deprecated GetVersionEx API
[oota-llvm.git] / lib / Support / raw_ostream.cpp
index 57162dc6e95a6fa1c000957f4d1a7da94782106b..15813fd3e669f87917c804d02c4f26163ecd889d 100644 (file)
@@ -577,7 +577,7 @@ void raw_fd_ostream::write_impl(const char *Ptr, size_t Size) {
   // Writing a large size of output to Windows console returns ENOMEM. It seems
   // that, prior to Windows 8, WriteFile() is redirecting to WriteConsole(), and
   // the latter has a size limit (66000 bytes or less, depending on heap usage).
-  bool ShouldWriteInChunks = !!::_isatty(FD) && !IsWindows8OrGreater();
+  bool ShouldWriteInChunks = !!::_isatty(FD) && !RunningWindows8OrGreater();
 #endif
 
   do {