Logging improvements to allow prettier displays in the server GUI.
[dcpomatic.git] / src / lib / data.cc
index 92b0b19d53380590fb2071b43d646612a45a058b..eb3ec4c634c1fc2104fe4a1f6301550369c56cc2 100644 (file)
@@ -20,6 +20,7 @@
 #include "data.h"
 #include "cross.h"
 #include "exceptions.h"
+#include <cstdio>
 
 #include "i18n.h"
 
@@ -54,13 +55,13 @@ Data::Data (boost::filesystem::path file)
        if (!f) {
                throw FileError (_("could not open file for reading"), file);
        }
-       
+
        size_t const r = fread (_data.get(), 1, _size, f);
        if (r != size_t (_size)) {
                fclose (f);
                throw FileError (_("could not read from file"), file);
        }
-               
+
        fclose (f);
 }