changeset 1715:9ec3f123f1fb

Build fixes
author Chris Cannam
date Fri, 17 May 2019 11:53:43 +0100
parents 83cb6e9d769b
children 021556fcd30b
files data/fileio/test/UnsupportedFormat.cpp
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/test/UnsupportedFormat.cpp	Fri May 17 11:05:10 2019 +0100
+++ b/data/fileio/test/UnsupportedFormat.cpp	Fri May 17 11:53:43 2019 +0100
@@ -18,6 +18,8 @@
 #include <windows.h>
 #endif
 
+#include <iostream>
+
 bool
 UnsupportedFormat::isLegitimatelyUnsupported(QString format)
 {
@@ -36,7 +38,7 @@
         RtlGetVersion(&osInfo);
 
         if (osInfo.wProductType != VER_NT_WORKSTATION) {
-            cerr << "NOTE: We appear to be running on Windows Server (wProductType = " << osInfo.wProductType << ") - assuming encumbered media codecs might not be installed and being lenient about them" << endl;
+            std::cerr << "NOTE: We appear to be running on Windows Server (wProductType = " << osInfo.wProductType << ") - assuming encumbered media codecs might not be installed and being lenient about them" << std::endl;
             return (format == "aac" ||
                     format == "apple_lossless" ||
                     format == "m4a" ||
@@ -44,7 +46,8 @@
         }
         
     } else {
-        cerr << "WARNING: Failed to find RtlGetVersion in NTDLL" << endl;
+        std::cerr << "WARNING: Failed to find RtlGetVersion in NTDLL"
+                  << std::endl;
     }
     
     return (format == "apple_lossless");