diff options
-rw-r--r-- | libs/ptformat/ptfformat.cc | 8 |
1 files changed, 5 insertions, 3 deletions
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 <stdio.h> #include <string> #include <string.h> #include <assert.h> +#include <glib/gstdio.h> + +#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; } |