diff --git a/libs/ptformat/ptfformat.cc b/libs/ptformat/ptfformat.cc index 8c3452c868..caf2c2f42a 100644 --- a/libs/ptformat/ptfformat.cc +++ b/libs/ptformat/ptfformat.cc @@ -14,13 +14,15 @@ */ -#include "ptfformat.h" - #include #include #include #include +#include + +#include "ptfformat.h" + using namespace std; static const uint32_t baselut[16] = { @@ -115,7 +117,7 @@ PTFFormat::load(std::string path, int64_t targetsr) { int inv; int err; - if (! (fp = fopen(path.c_str(), "rb"))) { + if (! (fp = g_fopen(path.c_str(), "rb"))) { return -1; }